rea-agents 5.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -655
- package/bridge/android/ReaJadxBridge.java +14 -5
- package/bridge/ghidra/ReaGhidraBridge.java +173 -47
- package/bridge/hopper_bridge.py +310 -128
- package/bridge/mitmproxy/capture.py +208 -0
- package/bridge/native/rea_lldb_tracer.py +839 -0
- package/bridge/process/ProcessRunTokenReader.swift +297 -0
- package/bridge/process/ProcessRunTokenReaderMain.swift +35 -0
- package/bridge/pwndbg/core_context.py +101 -0
- package/bridge/pwndbg/launch.py +39 -0
- package/bridge/pwndbg/launch_impl.py +34 -0
- package/bridge/pwntools/decoder_runtime.py +59 -0
- package/bridge/pwntools/layout.py +39 -0
- package/bridge/pwntools/layout_impl.py +309 -0
- package/bridge/pwntools/recorded_crash.py +39 -0
- package/bridge/pwntools/recorded_crash_impl.py +147 -0
- package/dist/android/JadxConfiguration.js +196 -33
- package/dist/android/JadxMcpTransport.js +4 -0
- package/dist/android/JadxProtocol.js +6 -0
- package/dist/android/JadxProvider.js +20 -2
- package/dist/android/JadxSession.js +23 -4
- package/dist/application/AnalysisContextQueries.js +8 -35
- package/dist/application/AnalysisDocument.js +32 -0
- package/dist/application/AppBundleExecutable.js +67 -21
- package/dist/application/CallPathTracing.js +19 -3
- package/dist/application/CapabilityInventory.js +27 -3
- package/dist/application/ClientConfigurationDocument.js +871 -6
- package/dist/application/ClientRegistrationIdentity.js +26 -5
- package/dist/application/ClientRegistrationStatus.js +29 -14
- package/dist/application/DirectAnalysis.js +97 -33
- package/dist/application/Doctor.js +4 -2
- package/dist/application/DoctorScope.js +25 -13
- package/dist/application/EnhancedLiteralTracing.js +22 -25
- package/dist/application/EnhancedTools.js +13 -11
- package/dist/application/EvidenceBundleFiles.js +24 -12
- package/dist/application/FunctionAnalysisEvidence.js +2 -3
- package/dist/application/InventoryProjectionEvidence.js +4 -3
- package/dist/application/InvestigationProviders.js +3 -2
- package/dist/application/JsonFiles.js +50 -28
- package/dist/application/ProcedureAddressResolution.js +11 -0
- package/dist/application/ReconstructionCoverageService.js +7 -4
- package/dist/application/ReconstructionObligationCandidates.js +5 -1
- package/dist/application/ReconstructionObligationLedgerService.js +4 -3
- package/dist/application/Setup.js +13 -1
- package/dist/application/SetupClientConfiguration.js +10 -15
- package/dist/application/SetupHost.js +5 -2
- package/dist/application/SetupPlan.js +5 -3
- package/dist/application/SupportedClients.js +34 -1
- package/dist/application/Uninstall.js +4 -3
- package/dist/application/Update.js +18 -3
- package/dist/application/UpdateRuntime.js +46 -25
- package/dist/application/WebModuleTraceService.js +4 -2
- package/dist/application/WebNetworkCapturePort.js +1 -0
- package/dist/application/WebNetworkCaptureService.js +134 -0
- package/dist/application/WebRuntimeService.js +5 -3
- package/dist/application/WebScriptExportService.js +2 -2
- package/dist/application/WebSourceLocationService.js +4 -2
- package/dist/application/WindowsCapabilities.js +1 -1
- package/dist/application/WorkflowEvidence.js +82 -0
- package/dist/application/binary/AnalysisProviderEvaluation.js +21 -5
- package/dist/application/binary/AnalysisProviderRegistry.js +2 -0
- package/dist/application/binary/AnalysisSnapshotCache.js +52 -12
- package/dist/application/binary/BinarySession.js +131 -76
- package/dist/application/binary/BinarySessionOpen.js +19 -6
- package/dist/application/binary/BinarySessionRecords.js +45 -3
- package/dist/application/binary/BinarySessionStatus.js +17 -1
- package/dist/application/binary/CompositeProvider.js +13 -0
- package/dist/application/binary/LazyAnalysisProvider.js +3 -0
- package/dist/application/binaryDiagnostics/BinaryLayoutPort.js +1 -0
- package/dist/application/binaryDiagnostics/BinaryLayoutService.js +59 -0
- package/dist/application/binaryDiagnostics/RecordedCrashPort.js +1 -0
- package/dist/application/binaryDiagnostics/RecordedCrashService.js +62 -0
- package/dist/application/evm/EvmInterfacePort.js +1 -0
- package/dist/application/evm/EvmInterfaceService.js +64 -0
- package/dist/application/investigation/EvidenceLedger.js +21 -7
- package/dist/application/investigation/InvestigationRecords.js +8 -0
- package/dist/application/javascript/JavaScriptAnalysisControl.js +34 -0
- package/dist/application/javascript/JavaScriptApplicationEvidence.js +25 -5
- package/dist/application/javascript/JavaScriptApplicationEvidenceGraph.js +19 -2
- package/dist/application/javascript/JavaScriptApplicationService.js +34 -14
- package/dist/application/javascript/JavaScriptApplicationWorkflowService.js +5 -5
- package/dist/application/javascript/JavaScriptArtifactAnalysis.js +47 -27
- package/dist/application/javascript/JavaScriptArtifactGraphBuilder.js +39 -7
- package/dist/application/javascript/JavaScriptArtifactGraphDocuments.js +26 -2
- package/dist/application/javascript/JavaScriptArtifactPathResolution.js +80 -27
- package/dist/application/javascript/JavaScriptArtifactReconstruction.js +33 -12
- package/dist/application/javascript/JavaScriptModuleRelationships.js +37 -8
- package/dist/application/javascript/JavaScriptRecoveryService.js +4 -2
- package/dist/application/javascript/JavaScriptRuntimeObservationService.js +3 -1
- package/dist/application/javascript/JavaScriptRuntimeReconciliationService.js +3 -3
- package/dist/application/javascript/JavaScriptSemanticGraphAsyncProjection.js +7 -7
- package/dist/application/javascript/JavaScriptSemanticGraphBuilder.js +149 -72
- package/dist/application/javascript/JavaScriptSemanticGraphChildProcessProjection.js +14 -15
- package/dist/application/javascript/JavaScriptSemanticGraphConstruction.js +41 -1
- package/dist/application/javascript/JavaScriptSemanticGraphDataProjection.js +7 -7
- package/dist/application/javascript/JavaScriptSemanticGraphFlowProjection.js +5 -9
- package/dist/application/javascript/JavaScriptSemanticGraphObjectProjection.js +3 -3
- package/dist/application/javascript/JavaScriptSemanticGraphProjection.js +118 -12
- package/dist/application/javascript/JavaScriptSemanticGraphResourceProjection.js +3 -3
- package/dist/application/javascript/JavaScriptSemanticGraphValueProjection.js +27 -5
- package/dist/application/managed/ManagedApplicationGraphService.js +4 -3
- package/dist/application/managed/ManagedMemberComparisonService.js +7 -4
- package/dist/application/managed/ManagedNativeVerificationService.js +4 -3
- package/dist/application/managed/ManagedReconstructionService.js +4 -3
- package/dist/application/{ProcessCli.js → process/ProcessCli.js} +23 -15
- package/dist/application/{ProcessEvidence.js → process/ProcessEvidence.js} +8 -7
- package/dist/application/workflowInputError.js +18 -0
- package/dist/artifacts/ArtifactProvider.js +42 -5
- package/dist/artifacts/ArtifactProviderMetadata.js +2 -1
- package/dist/artifacts/MachOSliceArtifactReader.js +98 -14
- package/dist/artifacts/NativeDmgArtifactReader.js +13 -6
- package/dist/artifacts/ZipArtifactReader.js +3 -0
- package/dist/artifacts/apple/AppleAssetCatalogAnalysis.js +22 -3
- package/dist/artifacts/apple/DylibResolutionReader.js +259 -0
- package/dist/artifacts/apple/InterfaceBuilderAnalysis.js +176 -56
- package/dist/artifacts/apple/InterfaceBuilderDecodeBudget.js +195 -0
- package/dist/artifacts/apple/KeyedArchiveReader.js +36 -22
- package/dist/artifacts/apple/MachoLoadCommandReader.js +355 -0
- package/dist/artifacts/apple/NibArchive.js +81 -14
- package/dist/artifacts/apple/NibViewHierarchy.js +10 -3
- package/dist/artifacts/apple/PlistNumberLiterals.js +164 -0
- package/dist/{application → artifacts/extraction}/ArtifactExtraction.js +10 -10
- package/dist/{application → artifacts/inventory}/ArtifactGraphConstruction.js +16 -11
- package/dist/{application → artifacts/inventory}/ArtifactInventory.js +4 -4
- package/dist/{application/ArtifactInventory → artifacts/inventory}/classify.js +2 -2
- package/dist/{application/ArtifactInventory → artifacts/inventory}/reader.js +5 -5
- package/dist/{application/ArtifactInventory → artifacts/inventory}/scanCanonical.js +14 -17
- package/dist/{application/ArtifactInventory → artifacts/inventory}/scanReader.js +5 -5
- package/dist/artifacts/javascript/JavaScriptArtifactFiles.js +6 -2
- package/dist/artifacts/readStableArtifact.js +20 -4
- package/dist/browser/CdpCaptureCompleteness.js +2 -0
- package/dist/browser/CdpCaptureEventHandlers.js +165 -12
- package/dist/browser/CdpCaptureEventTypes.js +5 -1
- package/dist/browser/CdpCaptureEvents.js +34 -0
- package/dist/browser/CdpConnection.js +30 -11
- package/dist/browser/CdpOptionalCommand.js +2 -3
- package/dist/browser/CdpPageCapture.js +23 -1
- package/dist/browser/PlaywrightElectronActiveActions.js +32 -23
- package/dist/browser/PlaywrightElectronActiveProjection.js +141 -0
- package/dist/browser/PlaywrightElectronActiveProvider.js +130 -122
- package/dist/browser/WebSourceMapFetcher.js +426 -72
- package/dist/browser/assets/LocalWebScriptArtifacts.js +2 -2
- package/dist/browser/history/CaptureFailures.js +137 -0
- package/dist/browser/history/CaptureFormatError.js +10 -0
- package/dist/browser/history/CaptureRedaction.js +65 -0
- package/dist/browser/history/CaptureRelease.js +17 -0
- package/dist/browser/history/HarCapture.js +165 -0
- package/dist/browser/history/HarCaptureAdapter.js +20 -0
- package/dist/browser/history/HarCaptureProcess.js +57 -0
- package/dist/browser/history/HarJson.js +92 -0
- package/dist/browser/history/HarSchema.js +72 -0
- package/dist/browser/history/HistoricalCaptureDecoder.js +188 -0
- package/dist/browser/history/HistoricalCaptureFormatAdapter.js +1 -0
- package/dist/browser/history/MitmproxyCaptureAdapter.js +42 -0
- package/dist/cli/analysisSelector.js +23 -0
- package/dist/cli/applicationCommands.js +2 -3
- package/dist/cli/artifactCommands.js +26 -1
- package/dist/cli/binaryDiagnosticsCommands.js +39 -0
- package/dist/cli/coreAnalysisCommands.js +2 -2
- package/dist/cli/coreBinaryCommands.js +78 -20
- package/dist/cli/electronCommands.js +21 -13
- package/dist/cli/evmCommands.js +24 -0
- package/dist/cli/firmwareCommands.js +6 -3
- package/dist/cli/javascriptApplicationAnalysis.js +20 -3
- package/dist/cli/jsonOutput.js +38 -0
- package/dist/cli/nativeCallCommands.js +34 -0
- package/dist/cli/processCommands.js +1 -1
- package/dist/cli/streamedJsonOutput.js +56 -0
- package/dist/cli/utilityCommands.js +2 -0
- package/dist/cli/webNetworkCaptureCommands.js +40 -0
- package/dist/cli/webRuntimeCommands.js +8 -8
- package/dist/cli.js +11 -4
- package/dist/cliBrowserScenarioCommands.js +2 -2
- package/dist/cliCommandNames.js +6 -1
- package/dist/cliJsonInput.js +35 -1
- package/dist/cliOutput.js +21 -6
- package/dist/composition/binaryDiagnostics.js +8 -0
- package/dist/composition/evm.js +4 -0
- package/dist/composition/webNetworkCaptures.js +6 -0
- package/dist/config/environment.js +4 -0
- package/dist/config/ghidraStartupTimeout.js +17 -0
- package/dist/config/mcpResponseBudget.js +22 -0
- package/dist/config/parseConfig.js +2 -1
- package/dist/contracts/artifactToolContracts.js +6 -0
- package/dist/contracts/browserCaptureToolInputSchema.js +43 -0
- package/dist/contracts/browserToolContracts.js +4 -3
- package/dist/contracts/enhancedInputs.js +5 -3
- package/dist/contracts/enhancedToolContracts.js +3 -3
- package/dist/contracts/errorSchemas.js +8 -1
- package/dist/contracts/evm/evmToolContracts.js +20 -0
- package/dist/contracts/hopperMemoryContracts.js +2 -5
- package/dist/contracts/investigationExamples.js +2 -2
- package/dist/contracts/javascript/electronToolContracts.js +1 -1
- package/dist/contracts/managed/managedToolContracts.js +8 -6
- package/dist/contracts/native/binaryDiagnosticsToolContracts.js +42 -0
- package/dist/contracts/native/nativeToolContracts.js +21 -3
- package/dist/contracts/officialToolContracts.js +26 -24
- package/dist/contracts/process/processCaptureExample.js +2 -0
- package/dist/contracts/promptContracts.js +3 -3
- package/dist/contracts/sessionLifecycleInputs.js +18 -5
- package/dist/contracts/sessionStatusContract.js +8 -2
- package/dist/contracts/sessionToolContracts.js +8 -3
- package/dist/contracts/sessionToolSchemas.js +8 -4
- package/dist/contracts/toolContractExamples.js +1 -2
- package/dist/contracts/toolContractHelpers.js +4 -1
- package/dist/contracts/toolContracts.js +6 -0
- package/dist/contracts/toolEffects.js +30 -1
- package/dist/contracts/toolOutputSchemaGroups.js +33 -28
- package/dist/contracts/toolOutputSchemaPrimitives.js +19 -1
- package/dist/contracts/toolSchemaMetadata.js +69 -10
- package/dist/contracts/webNetworkCaptureToolContracts.js +24 -0
- package/dist/domain/analysisErrorBase.js +22 -2
- package/dist/domain/analysisErrorCore.js +61 -5
- package/dist/domain/analysisErrorPresentation.js +95 -12
- package/dist/domain/analysisErrorProjection.js +148 -19
- package/dist/domain/analysisSnapshot.js +166 -2
- package/dist/domain/android/androidAnalysis.js +2 -4
- package/dist/domain/android/androidApplication.js +17 -9
- package/dist/domain/apple/appleApplication.js +41 -14
- package/dist/domain/apple/dyldEnvironment.js +73 -0
- package/dist/domain/apple/dyldPaths.js +81 -0
- package/dist/domain/apple/dylibResolution.js +478 -0
- package/dist/domain/apple/dylibResolutionFindings.js +77 -0
- package/dist/domain/apple/interfaceBuilderGraph.js +25 -13
- package/dist/domain/apple/interfaceBuilderKeyedArchive.js +13 -3
- package/dist/domain/apple/keyedArchive.js +9 -1
- package/dist/domain/apple/machoContainer.js +54 -0
- package/dist/domain/apple/plistNumbers.js +76 -0
- package/dist/domain/artifactIdentity.js +29 -0
- package/dist/domain/artifactInventoryEvidence.js +19 -24
- package/dist/domain/artifactPathSyntax.js +1 -1
- package/dist/domain/bridgeCandidateProjection.js +71 -0
- package/dist/domain/browserCompleteness.js +1 -0
- package/dist/domain/browserObservation.js +1 -1
- package/dist/domain/browserObservationError.js +24 -5
- package/dist/domain/browserObservationSchemas.js +13 -0
- package/dist/domain/browserScenarioValues.js +5 -2
- package/dist/domain/bundleComparison.js +3 -2
- package/dist/domain/callPathSchemas.js +1 -1
- package/dist/domain/canonicalDigest.js +13 -1
- package/dist/domain/canonicalJsonDigestSteps.js +133 -0
- package/dist/domain/canonicalOrdering.js +9 -5
- package/dist/domain/changedBehavior.js +9 -9
- package/dist/domain/comparisonSourceEvidence.js +40 -0
- package/dist/domain/comparisonStatus.js +2 -30
- package/dist/domain/configurationErrors.js +1 -1
- package/dist/domain/conformanceTrustGate.js +0 -16
- package/dist/domain/evidence.js +78 -11
- package/dist/domain/evidenceBundle.js +42 -1
- package/dist/domain/evidenceErrors.js +12 -1
- package/dist/domain/evm/evmInterface.js +63 -0
- package/dist/domain/explicitSensitiveFailure.js +108 -0
- package/dist/domain/explicitSensitiveValues.js +10 -0
- package/dist/domain/firmware/firmwareAnalysis.js +10 -4
- package/dist/domain/hopperErrors.js +23 -2
- package/dist/domain/hopperValues.js +51 -8
- package/dist/domain/immutableJson.js +114 -0
- package/dist/domain/inputIssueProjection.js +3 -0
- package/dist/domain/javascript/electronActiveObservation.js +37 -6
- package/dist/domain/javascript/electronStaticAnalysisValues.js +6 -12
- package/dist/domain/javascript/htmlArtifactReferences.js +40 -0
- package/dist/domain/javascript/javascriptApplicationAnalysis.js +71 -23
- package/dist/domain/javascript/javascriptApplicationGraph.js +13 -0
- package/dist/domain/javascript/javascriptAstValues.js +20 -0
- package/dist/domain/javascript/javascriptExportShapeComparison.js +21 -5
- package/dist/domain/javascript/javascriptExportShapeVariants.js +0 -10
- package/dist/domain/javascript/javascriptRecovery.js +3 -8
- package/dist/domain/javascript/javascriptSemanticAnalysis.js +97 -2
- package/dist/domain/javascript/javascriptSemanticCoverage.js +6 -5
- package/dist/domain/javascript/javascriptSemanticDataEffectHelpers.js +9 -17
- package/dist/domain/javascript/javascriptSemanticDataEffects.js +22 -5
- package/dist/domain/javascript/javascriptSemanticGraph.js +34 -5
- package/dist/domain/javascript/javascriptSemanticGraphSchemas.js +1 -0
- package/dist/domain/javascript/javascriptSemanticPrimitives.js +25 -17
- package/dist/domain/javascript/javascriptSemanticQuerySchemas.js +8 -4
- package/dist/domain/javascript/javascriptSemanticResourceLimits.js +77 -0
- package/dist/domain/javascript/javascriptSemanticValues.js +83 -11
- package/dist/domain/javascript/javascriptSourceParser.js +6 -2
- package/dist/domain/javascript/javascriptStaticAnalysis.js +22 -17
- package/dist/domain/javascript/javascriptStaticAnalysisBundler.js +5 -3
- package/dist/domain/javascript/javascriptStaticAnalysisCalls.js +14 -4
- package/dist/domain/javascript/javascriptStaticAnalysisFindings.js +66 -7
- package/dist/domain/javascript/javascriptStaticAnalysisHelpers.js +28 -16
- package/dist/domain/javascript/javascriptStaticAnalysisState.js +3 -2
- package/dist/domain/jsonSerialization.js +109 -0
- package/dist/domain/jsonValue.js +91 -3
- package/dist/domain/localPath.js +8 -0
- package/dist/domain/managed/managedApplicationGraph.js +10 -10
- package/dist/domain/managed/managedInspectionEvidence.js +16 -0
- package/dist/domain/managed/managedMemberComparisonMatch.js +5 -9
- package/dist/domain/managed/managedNativeVerification.js +3 -9
- package/dist/domain/native/binaryLayout.js +357 -0
- package/dist/domain/native/fileOffsetPartialObservation.js +1 -0
- package/dist/domain/native/nativeCallObservation.js +186 -0
- package/dist/domain/native/nativeCallPartialObservation.js +33 -0
- package/dist/domain/native/objcSwiftMetadata.js +0 -39
- package/dist/domain/native/recordedCrash.js +266 -0
- package/dist/domain/native/recordedCrashNoteCoverage.js +73 -0
- package/dist/domain/{processCapture.js → process/processCapture.js} +143 -2
- package/dist/domain/{processCaptureExample.js → process/processCaptureExample.js} +5 -0
- package/dist/domain/process/processCaptureParsing.js +54 -0
- package/dist/domain/{processCaptureValidation.js → process/processCaptureValidation.js} +18 -2
- package/dist/domain/{processComparison.js → process/processComparison.js} +39 -5
- package/dist/domain/{processObservation.js → process/processObservation.js} +1 -1
- package/dist/domain/{processScenario.js → process/processScenario.js} +11 -10
- package/dist/domain/{processTraceSpecification.js → process/processTraceSpecification.js} +1 -1
- package/dist/domain/propertyListKeys.js +1 -1
- package/dist/domain/propertyListXmlText.js +19 -0
- package/dist/domain/providerAdapterError.js +1 -1
- package/dist/domain/providerOperationHealth.js +54 -0
- package/dist/domain/providerSelectionError.js +4 -2
- package/dist/domain/reconstructionVerification.js +9 -46
- package/dist/domain/reconstructionVerificationSchemas.js +3 -3
- package/dist/domain/residualUnknown.js +3 -2
- package/dist/domain/staticRuntimeCorrelation.js +9 -46
- package/dist/domain/webBundleAnalysis.js +20 -8
- package/dist/domain/webBundleAnalyzerInspection.js +13 -8
- package/dist/domain/webBundleAnalyzerResult.js +41 -2
- package/dist/domain/webCaptureDiff.js +1 -0
- package/dist/domain/webNetworkCapture.js +118 -0
- package/dist/domain/webNetworkCaptureCoordinates.js +58 -0
- package/dist/domain/webRuntime.js +19 -5
- package/dist/domain/webSourceLocation.js +1 -0
- package/dist/dotnet/ManagedExceptionRegionValidation.js +41 -0
- package/dist/dotnet/ManagedMemberInspector.js +4 -2
- package/dist/dotnet/ManagedMemberInspectorCore.js +38 -32
- package/dist/dotnet/ManagedMemberInstructionDecoder.js +23 -7
- package/dist/dotnet/ManagedMemberRows.js +14 -3
- package/dist/dotnet/ManagedMetadataHeaps.js +20 -2
- package/dist/dotnet/ManagedMetadataInventory.js +38 -28
- package/dist/dotnet/ManagedMetadataInventoryRows.js +24 -10
- package/dist/dotnet/ManagedMethodBodyReader.js +7 -1
- package/dist/dotnet/ManagedNativeBoundaryHelpers.js +15 -3
- package/dist/dotnet/ManagedNativeBoundaryInspector.js +3 -1
- package/dist/dotnet/ManagedPeReader.js +11 -0
- package/dist/evm/EvmBytecodeCarrier.js +21 -0
- package/dist/evm/EvmWorkerLimits.js +40 -0
- package/dist/evm/EvmoleFailures.js +126 -0
- package/dist/evm/EvmoleInterfaceAdapter.js +53 -0
- package/dist/evm/EvmoleInterfaceProvider.js +273 -0
- package/dist/evm/EvmoleInterfaceWorker.js +87 -0
- package/dist/evm/EvmoleRelease.js +16 -0
- package/dist/firmware/FirmwareCommand.js +1 -0
- package/dist/firmware/FirmwareFiles.js +1 -1
- package/dist/generatedPackageMetadata.js +2 -2
- package/dist/ghidra/GhidraAnalysisProfile.js +5 -0
- package/dist/ghidra/GhidraClient.js +47 -14
- package/dist/ghidra/GhidraDiagnostics.js +7 -7
- package/dist/ghidra/GhidraFunctionValues.js +10 -7
- package/dist/ghidra/GhidraInstallation.js +18 -21
- package/dist/ghidra/GhidraInventoryValues.js +14 -4
- package/dist/ghidra/GhidraJavaLaunch.js +62 -0
- package/dist/ghidra/GhidraLauncher.js +34 -16
- package/dist/ghidra/GhidraProvider.js +2 -2
- package/dist/ghidra/GhidraProviderCapabilities.js +15 -3
- package/dist/ghidra/GhidraProviderClient.js +23 -12
- package/dist/ghidra/GhidraSessionError.js +11 -7
- package/dist/ghidra/GhidraTargetSnapshot.js +47 -12
- package/dist/ghidra/GhidraTransport.js +20 -0
- package/dist/hopper/BridgeLauncher.js +33 -11
- package/dist/hopper/HopperAnalysisProfile.js +62 -4
- package/dist/hopper/HopperCleanup.js +15 -3
- package/dist/hopper/HopperClient.js +222 -14
- package/dist/hopper/HopperFileOffset.js +237 -0
- package/dist/hopper/HopperMachOImage.js +196 -0
- package/dist/hopper/HopperOperationStage.js +6 -0
- package/dist/hopper/HopperProvider.js +63 -9
- package/dist/hopper/HopperProviderCapabilities.js +19 -1
- package/dist/hopper/HopperRegexSearch.js +137 -0
- package/dist/hopper/HopperRegexWorker.js +27 -0
- package/dist/hopper/HopperRequestQueue.js +68 -19
- package/dist/hopper/HopperTargetLease.js +3 -2
- package/dist/hopper/LinuxPrivateDisplayProbe.js +4 -2
- package/dist/inspector/JavaScriptRuntimeScope.js +9 -1
- package/dist/inspector/V8InspectorCaptureProjection.js +8 -3
- package/dist/inspector/V8InspectorProvider.js +47 -11
- package/dist/javascript/recovery/WakaruCommand.js +3 -0
- package/dist/javascript/sourceMaps/DecodedSourceMap.js +47 -0
- package/dist/javascript/sourceMaps/SourceMapCommand.js +17 -0
- package/dist/javascript/sourceMaps/SourceMapFormat.js +79 -31
- package/dist/javascript/sourceMaps/TraceSourceMap.js +14 -28
- package/dist/mcpDoctor.js +62 -2
- package/dist/native/AppleDispatchCoverage.js +47 -6
- package/dist/native/AppleDispatchDecodeFacts.js +6 -0
- package/dist/native/AppleDispatchMetadata.js +6 -3
- package/dist/native/AppleMachoFixups.js +48 -24
- package/dist/native/AppleMachoSelection.js +32 -16
- package/dist/native/AppleObjcCategories.js +6 -2
- package/dist/native/AppleObjcDispatchFacets.js +5 -2
- package/dist/native/AppleObjcProperties.js +2 -1
- package/dist/native/AppleSwiftDispatchFacets.js +27 -21
- package/dist/native/AppleSwiftVtables.js +21 -15
- package/dist/native/CommandRunner.js +82 -84
- package/dist/native/LldbCallTracer.js +541 -0
- package/dist/native/LldbRetainedObservations.js +178 -0
- package/dist/native/NativeCallObservation.js +194 -0
- package/dist/native/NativeMacOSProvider.js +117 -20
- package/dist/native/NativeMacOSProviderMetadata.js +8 -3
- package/dist/native/SignatureTargetBinding.js +155 -0
- package/dist/native/parsers/lipo.js +71 -1
- package/dist/native/pwndbg/PwndbgCoreContext.js +180 -0
- package/dist/native/pwntools/PwntoolsDecoder.js +203 -0
- package/dist/native/pwntools/PwntoolsFailures.js +180 -0
- package/dist/native/pwntools/PwntoolsLayoutProvider.js +36 -0
- package/dist/native/pwntools/PwntoolsRecordedCrashProvider.js +75 -0
- package/dist/native/pwntools/PwntoolsRelease.js +19 -0
- package/dist/native/pwntools/PwntoolsResourceLimits.js +76 -0
- package/dist/native/pwntools/RecordedCrashSourceBindings.js +46 -0
- package/dist/native/pwntools/RecordedCrashStructureBindings.js +103 -0
- package/dist/process/DarwinProcessRunTokenReader.js +293 -0
- package/dist/process/ExecFileOutput.js +20 -0
- package/dist/process/OwnedCommand.js +118 -0
- package/dist/process/ProcessOwnership.js +431 -51
- package/dist/process/ProcessOwnershipObservation.js +209 -27
- package/dist/process/ProviderProcess.js +68 -10
- package/dist/{application → process/capture}/ProcessCaptureCapability.js +15 -0
- package/dist/{application → process/capture}/ProcessCaptureError.js +18 -2
- package/dist/process/capture/ProcessCaptureLifecycle.js +681 -0
- package/dist/{application → process/capture}/ProcessHarness.js +195 -29
- package/dist/{application → process/capture}/ProcessSampling.js +2 -2
- package/dist/server/EvidenceMcpServer.js +146 -0
- package/dist/server/createServer.js +37 -8
- package/dist/server/promptCompletion.js +10 -3
- package/dist/server/registerAndroidTools.js +2 -4
- package/dist/server/registerApplicationTools/helpers.js +2 -4
- package/dist/server/registerArtifactComparisonTool.js +11 -7
- package/dist/server/registerBinaryDiagnosticsTools.js +15 -0
- package/dist/server/registerBrowserScenarioTool.js +2 -4
- package/dist/server/registerBrowserTools.js +2 -4
- package/dist/server/registerBundleComparisonTool.js +2 -3
- package/dist/server/registerCloseLifecycleTool.js +8 -18
- package/dist/server/registerElectronTools.js +2 -4
- package/dist/server/registerEnhancedTools.js +18 -59
- package/dist/server/registerEvidenceTools.js +3 -5
- package/dist/server/registerEvmTools.js +15 -0
- package/dist/server/registerFirmwareTools.js +2 -4
- package/dist/server/registerFunctionComparisonTool.js +10 -6
- package/dist/server/registerInvestigationTools.js +7 -7
- package/dist/server/registerJavaScriptRecoveryTool.js +2 -4
- package/dist/server/registerJavaScriptRuntimeObservationTools.js +2 -4
- package/dist/server/registerManagedWorkflowTools/compareManagedMembers.js +2 -4
- package/dist/server/registerManagedWorkflowTools/importManagedReconstruction.js +2 -4
- package/dist/server/registerManagedWorkflowTools/projectManagedApplicationGraph.js +2 -4
- package/dist/server/registerManagedWorkflowTools/verifyManagedNativeBoundaries.js +2 -4
- package/dist/server/registerOfficialTools.js +2 -4
- package/dist/server/registerProcessComparisonTool.js +72 -46
- package/dist/server/registerRecordedCrashTools.js +15 -0
- package/dist/server/registerSessionRecordTools.js +5 -6
- package/dist/server/registerSessionStatusTool.js +17 -3
- package/dist/server/registerSessionTools.js +13 -5
- package/dist/server/registerWebModuleTool.js +2 -4
- package/dist/server/registerWebNetworkCaptureTool.js +26 -0
- package/dist/server/registerWebRuntimeTools.js +3 -7
- package/dist/server/registerWebScriptTool.js +2 -4
- package/dist/server/registerWebSourceLocationTool.js +2 -4
- package/dist/server/runDerivedOperation.js +15 -3
- package/dist/server/sessionAvailabilityPolicy.js +3 -1
- package/dist/server/sessionToolPolicies.js +1 -1
- package/dist/server/toolRegistrationOptions.js +2 -2
- package/dist/server/toolResult.js +63 -11
- package/dist/server/toolResultEncoding.js +33 -0
- package/install.sh +1 -1
- package/native/windows/build/manifest.json +2 -2
- package/native/windows/build/rea-windows-x64.node +0 -0
- package/package.json +42 -9
- package/scripts/electron-active-hook-boundaries.cjs +18 -20
- package/scripts/electron-active-hook.cjs +241 -37
- package/scripts/rea.mjs +11 -3
- package/skills/reverse-engineer-anything/SKILL.md +32 -4
- package/skills/reverse-engineer-anything/references/javascript-applications.md +8 -1
- package/skills/reverse-engineer-anything/references/native-and-artifacts.md +29 -0
- package/third_party/README.md +60 -0
- package/third_party/evmole/LICENSE +21 -0
- package/third_party/evmole/README.md +22 -0
- package/third_party/pwndbg/LICENSE.md +21 -0
- package/third_party/pwndbg/README.md +23 -0
- package/third_party/pwntools/README.md +40 -0
- package/dist/application/AuthorizedArtifactInventory.js +0 -7
- package/dist/application/ProcessCaptureLifecycle.js +0 -299
- package/dist/application/StoreFileLock.js +0 -124
- package/dist/contracts/processCaptureExample.js +0 -2
- package/dist/domain/bytecodeProvider.js +0 -178
- package/dist/domain/customProtocolCapture.js +0 -137
- package/dist/domain/eventProcessTree.js +0 -225
- package/dist/domain/mobileApplicationInvestigation.js +0 -159
- package/dist/domain/packageAnalysis.js +0 -123
- package/dist/domain/peInspection.js +0 -197
- package/dist/domain/processCaptureParsing.js +0 -21
- package/dist/domain/protocolCapture.js +0 -217
- package/dist/domain/runtimeIdentification.js +0 -212
- package/dist/generatedMcpToolCatalog.js +0 -37
- package/dist/ghidra/GhidraDefaults.js +0 -2
- /package/dist/application/{ArtifactExtractionDestination.js → artifacts/ArtifactExtractionDestination.js} +0 -0
- /package/dist/{application/ArtifactInventory → artifacts/inventory}/policy.js +0 -0
- /package/dist/{application/ArtifactInventory → artifacts/inventory}/types.js +0 -0
- /package/dist/domain/{processEvidenceProvider.js → process/processEvidenceProvider.js} +0 -0
- /package/dist/domain/{processTraceComparison.js → process/processTraceComparison.js} +0 -0
- /package/dist/domain/{processTraceDimensionProjection.js → process/processTraceDimensionProjection.js} +0 -0
- /package/dist/domain/{processTraceEvaluation.js → process/processTraceEvaluation.js} +0 -0
- /package/dist/{application → process/capture}/FilesystemSnapshot.js +0 -0
- /package/dist/{application → process/capture}/ProcessCaptureEnvironment.js +0 -0
- /package/dist/{application → process/capture}/ProcessCaptureJournal.js +0 -0
- /package/dist/{application → process/capture}/ProcessFilesystemEffects.js +0 -0
- /package/dist/{application → process/capture}/ProcessNormalization.js +0 -0
- /package/dist/{application → process/capture}/ProcessScenarioRuntimeValidation.js +0 -0
- /package/dist/{application → process/capture}/ProcessTimer.js +0 -0
- /package/dist/{application → process/capture}/TerminalRenderer.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createJavaScriptSemanticGraph, } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
1
|
+
import { createJavaScriptSemanticGraph, createImmutableJavaScriptSemanticGraphSteps, } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
2
2
|
import { JAVASCRIPT_SEMANTIC_RELATION_FAMILIES, JAVASCRIPT_SEMANTIC_RELATION_FAMILY, } from "../../domain/javascript/javascriptSemanticGraphSchemas.js";
|
|
3
3
|
import { sourceRangesEqual as rangesEqual } from "../../domain/javascript/javascriptStaticAnalysisHelpers.js";
|
|
4
4
|
import { projectSemanticEvents, projectSemanticTimers, } from "./JavaScriptSemanticGraphAsyncProjection.js";
|
|
@@ -10,73 +10,143 @@ import { projectSemanticValues } from "./JavaScriptSemanticGraphValueProjection.
|
|
|
10
10
|
import { inferredSemanticEvidenceAt } from "./JavaScriptSemanticGraphEvidence.js";
|
|
11
11
|
import { projectSemanticFunctionFingerprints } from "./JavaScriptSemanticGraphFingerprintProjection.js";
|
|
12
12
|
import { projectSemanticClosureCaptures, projectSemanticFrontiers, projectSemanticPromises, projectSemanticReturnValues, } from "./JavaScriptSemanticGraphFlowProjection.js";
|
|
13
|
-
import {
|
|
14
|
-
import { addSemanticFallbackRoot as addFallbackRoot,
|
|
15
|
-
/**
|
|
13
|
+
import { createSemanticCallableOwnerLookup, createSemanticCallSiteLookup, createSemanticNodeRangeLookup, semanticFamilyStatus, } from "./JavaScriptSemanticGraphProjection.js";
|
|
14
|
+
import { addSemanticFallbackRoot as addFallbackRoot, retainSemanticGraphNode as retainNode, addSemanticGraphRelation as addRelation, createSemanticGraphProjectionState as emptyState, bindSemanticGraphApplicationNodes, } from "./JavaScriptSemanticGraphConstruction.js";
|
|
15
|
+
/**
|
|
16
|
+
* Resource-safety ceiling on retained semantic nodes.
|
|
17
|
+
*
|
|
18
|
+
* The semantic projection emits one node per AST expression, call site, binding
|
|
19
|
+
* and property slot. That is unbounded in input size. A small tree of five files
|
|
20
|
+
* already yields on the order of 170,000 nodes, and larger trees yield millions,
|
|
21
|
+
* exhausting the heap before the result can be serialized.
|
|
22
|
+
*
|
|
23
|
+
* This is a real resource-safety constraint, not a presentation preference, so
|
|
24
|
+
* the ceiling is applied and reported through the graph's own `coverage` fields
|
|
25
|
+
* (`truncated`, `omitted_nodes`, `omitted_relations`, `limits`) rather than
|
|
26
|
+
* silently dropping data.
|
|
27
|
+
*
|
|
28
|
+
* Sizing: a retained semantic node costs roughly 3 KB once serialized, and V8
|
|
29
|
+
* additionally caps a single string at 512 MB. The result is serialized after the
|
|
30
|
+
* object graph is built and validated, so both phases must fit together. A single
|
|
31
|
+
* minified vendor bundle can account for most of a tree's nodes, so a whole-tree
|
|
32
|
+
* ceiling without a per-file ceiling does not bound the work. Both are applied.
|
|
33
|
+
*/
|
|
34
|
+
export const SEMANTIC_GRAPH_NODE_CEILING = 100_000;
|
|
35
|
+
/**
|
|
36
|
+
* Per-file share of the semantic node budget.
|
|
37
|
+
*
|
|
38
|
+
* Bound each source file independently so one large bundled library cannot
|
|
39
|
+
* consume the whole tree's budget and starve the application's own modules.
|
|
40
|
+
*/
|
|
41
|
+
export const SEMANTIC_GRAPH_FILE_NODE_CEILING = 20_000;
|
|
16
42
|
export const buildJavaScriptSemanticGraph = ({ rootArtifactSha256, applicationGraph, analysis, }) => {
|
|
17
|
-
const
|
|
18
|
-
const fingerprints = [];
|
|
43
|
+
const projection = createJavaScriptSemanticGraphProjection();
|
|
19
44
|
for (const analyzed of analysis.files) {
|
|
20
|
-
if (analyzed.semantic
|
|
21
|
-
|
|
22
|
-
fingerprints.push(...projectFile(analyzed.file, analyzed.semantic.ir, state));
|
|
45
|
+
if (analyzed.semantic !== null)
|
|
46
|
+
projection.projectFile(analyzed.file, analyzed.semantic.ir);
|
|
23
47
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
return projection.finish(rootArtifactSha256, applicationGraph, analysis);
|
|
49
|
+
};
|
|
50
|
+
/** Accumulate semantic nodes while each source IR is still file-local. */
|
|
51
|
+
export const createJavaScriptSemanticGraphProjection = () => {
|
|
52
|
+
const state = emptyState({ nodes: [] });
|
|
53
|
+
const fingerprints = [];
|
|
54
|
+
let truncatedFiles = 0;
|
|
55
|
+
const projectSource = (file, ir) => {
|
|
56
|
+
if (state.nodes.size >= SEMANTIC_GRAPH_NODE_CEILING) {
|
|
57
|
+
truncatedFiles += 1;
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const remainingTreeBudget = SEMANTIC_GRAPH_NODE_CEILING - state.nodes.size;
|
|
61
|
+
state.fileNodeBudget = Math.min(SEMANTIC_GRAPH_FILE_NODE_CEILING, remainingTreeBudget);
|
|
62
|
+
state.fileNodesDropped = false;
|
|
63
|
+
fingerprints.push(...projectFile(file, ir, state));
|
|
64
|
+
// Nodes were dropped only if the budget actually blocked creation. A file
|
|
65
|
+
// that exactly fills its share ends with a zero budget without dropping
|
|
66
|
+
// anything, so the remaining budget alone cannot decide truncation.
|
|
67
|
+
if (state.fileNodesDropped)
|
|
68
|
+
truncatedFiles += 1;
|
|
69
|
+
state.fileNodeBudget = null;
|
|
70
|
+
};
|
|
71
|
+
const finishWith = (factory, rootArtifactSha256, applicationGraph, analysis) => {
|
|
72
|
+
bindSemanticGraphApplicationNodes(state, applicationGraph);
|
|
73
|
+
if (state.roots.size === 0)
|
|
74
|
+
addFallbackRoot(rootArtifactSha256, state);
|
|
75
|
+
const unknowns = [...state.unknowns.values()];
|
|
76
|
+
const graph = factory({
|
|
77
|
+
schema: "JavaScriptSemanticRelationGraph",
|
|
78
|
+
root_artifact_sha256: rootArtifactSha256,
|
|
79
|
+
application_graph_id: applicationGraph.graph_id,
|
|
80
|
+
root_node_ids: [...state.roots],
|
|
81
|
+
nodes: [...state.nodes.values()],
|
|
82
|
+
relations: [...state.relations.values()],
|
|
83
|
+
fingerprints,
|
|
84
|
+
unknowns,
|
|
85
|
+
coverage: {
|
|
86
|
+
status: truncatedFiles > 0 ? "partial" : "unknown",
|
|
87
|
+
truncated: truncatedFiles > 0,
|
|
88
|
+
omitted_nodes: truncatedFiles > 0 ? null : 0,
|
|
89
|
+
omitted_relations: truncatedFiles > 0 ? null : 0,
|
|
90
|
+
limits: truncatedFiles > 0
|
|
91
|
+
? [
|
|
92
|
+
{
|
|
93
|
+
name: "semantic_graph_node_ceiling",
|
|
94
|
+
value: SEMANTIC_GRAPH_NODE_CEILING,
|
|
95
|
+
unit: "items",
|
|
96
|
+
},
|
|
97
|
+
]
|
|
98
|
+
: [],
|
|
99
|
+
families: JAVASCRIPT_SEMANTIC_RELATION_FAMILIES.map((family) => ({
|
|
100
|
+
family,
|
|
101
|
+
status: semanticFamilyStatus(family, analysis),
|
|
102
|
+
retained_relations: [...state.relations.values()].filter((relation) => JAVASCRIPT_SEMANTIC_RELATION_FAMILY[relation.relation] ===
|
|
103
|
+
family).length,
|
|
104
|
+
omitted_relations: truncatedFiles > 0 ? null : 0,
|
|
105
|
+
unknown_ids: unknowns
|
|
106
|
+
.filter((unknown) => unknown.family === family)
|
|
107
|
+
.map(({ unknown_id: identifier }) => identifier),
|
|
108
|
+
})),
|
|
109
|
+
},
|
|
110
|
+
limitations: [
|
|
111
|
+
"The semantic graph contains static syntax observations and conservative relationship candidates; it does not claim runtime execution.",
|
|
112
|
+
"Local data flow does not claim control-flow-sensitive reaching definitions or arbitrary dynamic property resolution.",
|
|
113
|
+
"Promise ownership covers explicit unshadowed Promise construction, static factories, aggregation, chaining, and await syntax only.",
|
|
114
|
+
"Function fingerprints are static candidates; equal digests can remain ambiguous and do not prove behavioral equivalence.",
|
|
115
|
+
"Event extraction covers EventEmitter-style literal registrations, removals, and dispatch candidates; dynamic names remain unknown.",
|
|
116
|
+
"Timer extraction covers global or node:timers scheduling and exact local-handle cancellation.",
|
|
117
|
+
"Child-process extraction covers asynchronous node:child_process creation, literal argv/env/stdio options, exit/error listeners, and kill signals.",
|
|
118
|
+
"Configuration extraction covers process.env, process.argv, node:fs reads, and direct logical defaults.",
|
|
119
|
+
"Request extraction covers fetch, WebSocket, node:http/node:https construction, direct option fields, and exact local response consumers.",
|
|
120
|
+
"Boundary extraction covers unshadowed JSON/global coercions plus parse and validation method candidates.",
|
|
121
|
+
"Resource extraction covers built-in filesystem/network acquisition and exact local close/destroy/end handles.",
|
|
122
|
+
],
|
|
123
|
+
});
|
|
124
|
+
state.nodes.clear();
|
|
125
|
+
state.relations.clear();
|
|
126
|
+
state.unknowns.clear();
|
|
127
|
+
state.roots.clear();
|
|
128
|
+
fingerprints.length = 0;
|
|
129
|
+
return graph;
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
projectFile: projectSource,
|
|
133
|
+
finish: (rootArtifactSha256, applicationGraph, analysis) => finishWith(createJavaScriptSemanticGraph, rootArtifactSha256, applicationGraph, analysis),
|
|
134
|
+
finishImmutableSteps: (rootArtifactSha256, applicationGraph, analysis) => finishWith(createImmutableJavaScriptSemanticGraphSteps, rootArtifactSha256, applicationGraph, analysis),
|
|
135
|
+
};
|
|
66
136
|
};
|
|
67
137
|
const projectFile = (file, ir, state) => {
|
|
68
|
-
const moduleNode =
|
|
138
|
+
const moduleNode = retainNode(state, file, {
|
|
69
139
|
kind: "module",
|
|
70
140
|
roleKey: "module",
|
|
71
141
|
location: null,
|
|
72
142
|
label: file.path,
|
|
73
143
|
functionNodeId: null,
|
|
74
|
-
}
|
|
144
|
+
});
|
|
75
145
|
if (moduleNode === null)
|
|
76
146
|
return [];
|
|
77
147
|
state.roots.add(moduleNode.node_id);
|
|
78
148
|
const callableNodes = new Map(ir.callables.flatMap((callable) => {
|
|
79
|
-
const node =
|
|
149
|
+
const node = retainNode(state, file, {
|
|
80
150
|
kind: "function",
|
|
81
151
|
roleKey: `callable:${callable.callableId}`,
|
|
82
152
|
location: callable.location,
|
|
@@ -84,25 +154,26 @@ const projectFile = (file, ir, state) => {
|
|
|
84
154
|
functionNodeId: null,
|
|
85
155
|
// The label is display text; keep the exact name, which may be "".
|
|
86
156
|
properties: { name: callable.name },
|
|
87
|
-
}
|
|
157
|
+
});
|
|
88
158
|
return node === null ? [] : [[callable.callableId, node]];
|
|
89
159
|
}));
|
|
160
|
+
const callableOwnerAt = createSemanticCallableOwnerLookup(ir, callableNodes);
|
|
90
161
|
const bindingNodes = new Map(ir.bindings.flatMap((binding) => {
|
|
91
162
|
const location = binding.definitions[0]?.location ?? null;
|
|
92
163
|
const kind = binding.kind === "parameter" ? "parameter" : "binding";
|
|
93
|
-
const owner =
|
|
94
|
-
const node =
|
|
164
|
+
const owner = callableOwnerAt(location);
|
|
165
|
+
const node = retainNode(state, file, {
|
|
95
166
|
kind,
|
|
96
167
|
roleKey: `binding:${binding.bindingId}`,
|
|
97
168
|
location,
|
|
98
169
|
label: binding.name,
|
|
99
170
|
functionNodeId: owner?.node_id ?? null,
|
|
100
|
-
}
|
|
171
|
+
});
|
|
101
172
|
return node === null ? [] : [[binding.bindingId, node]];
|
|
102
173
|
}));
|
|
103
174
|
const returnSiteNodes = createReturnSiteNodes(file, ir, callableNodes, state);
|
|
104
175
|
const callSiteNodes = createCallSiteNodes(file, ir, callableNodes, state);
|
|
105
|
-
const
|
|
176
|
+
const definitions = {
|
|
106
177
|
file,
|
|
107
178
|
ir,
|
|
108
179
|
state,
|
|
@@ -117,8 +188,14 @@ const projectFile = (file, ir, state) => {
|
|
|
117
188
|
call.callSiteId,
|
|
118
189
|
call.resolution === "exact" ? "resolved" : "candidate",
|
|
119
190
|
])),
|
|
191
|
+
callableOwnerAt,
|
|
192
|
+
callSiteAt: createSemanticCallSiteLookup(ir, callSiteNodes),
|
|
193
|
+
};
|
|
194
|
+
projectDefinitionsAndReferences(definitions);
|
|
195
|
+
const context = {
|
|
196
|
+
...definitions,
|
|
197
|
+
referenceNodesWithin: createSemanticNodeRangeLookup(definitions.referenceNodes),
|
|
120
198
|
};
|
|
121
|
-
projectDefinitionsAndReferences(context);
|
|
122
199
|
projectSemanticValues(context);
|
|
123
200
|
projectSemanticObjects(context);
|
|
124
201
|
projectCalls(context);
|
|
@@ -142,13 +219,13 @@ const createReturnSiteNodes = (file, ir, callables, state) => {
|
|
|
142
219
|
continue;
|
|
143
220
|
for (const site of callable.returnSites) {
|
|
144
221
|
const identifier = site.returnSiteId;
|
|
145
|
-
const node =
|
|
222
|
+
const node = retainNode(state, file, {
|
|
146
223
|
kind: "return-site",
|
|
147
224
|
roleKey: identifier,
|
|
148
225
|
location: site.location,
|
|
149
226
|
label: "return",
|
|
150
227
|
functionNodeId: owner.node_id,
|
|
151
|
-
}
|
|
228
|
+
});
|
|
152
229
|
if (node !== null)
|
|
153
230
|
result.set(identifier, node);
|
|
154
231
|
}
|
|
@@ -161,13 +238,13 @@ const createCallSiteNodes = (file, ir, callables, state) => {
|
|
|
161
238
|
const owner = call.callerCallableId === null
|
|
162
239
|
? null
|
|
163
240
|
: (callables.get(call.callerCallableId)?.node_id ?? null);
|
|
164
|
-
const node =
|
|
241
|
+
const node = retainNode(state, file, {
|
|
165
242
|
kind: "call-site",
|
|
166
243
|
roleKey: `call:${call.callSiteId}`,
|
|
167
244
|
location: call.location,
|
|
168
245
|
label: call.kind,
|
|
169
246
|
functionNodeId: owner,
|
|
170
|
-
}
|
|
247
|
+
});
|
|
171
248
|
if (node !== null)
|
|
172
249
|
result.set(call.callSiteId, node);
|
|
173
250
|
}
|
|
@@ -179,13 +256,13 @@ const projectDefinitionsAndReferences = (context) => {
|
|
|
179
256
|
if (bindingNode === undefined)
|
|
180
257
|
continue;
|
|
181
258
|
for (const [index, definition] of binding.definitions.entries()) {
|
|
182
|
-
const definitionNode =
|
|
259
|
+
const definitionNode = retainNode(context.state, context.file, {
|
|
183
260
|
kind: "expression",
|
|
184
261
|
roleKey: `definition:${binding.bindingId}:${String(index)}`,
|
|
185
262
|
location: definition.location,
|
|
186
263
|
label: definition.kind,
|
|
187
264
|
functionNodeId: bindingNode.function_node_id,
|
|
188
|
-
}
|
|
265
|
+
});
|
|
189
266
|
addRelation(context.state, {
|
|
190
267
|
source: definitionNode,
|
|
191
268
|
target: bindingNode,
|
|
@@ -195,13 +272,13 @@ const projectDefinitionsAndReferences = (context) => {
|
|
|
195
272
|
}
|
|
196
273
|
}
|
|
197
274
|
for (const [index, reference] of context.ir.references.entries()) {
|
|
198
|
-
const expression =
|
|
275
|
+
const expression = retainNode(context.state, context.file, {
|
|
199
276
|
kind: "expression",
|
|
200
277
|
roleKey: `reference:${String(index)}:${reference.role}:${reference.name}`,
|
|
201
278
|
location: reference.location,
|
|
202
279
|
label: reference.name,
|
|
203
|
-
functionNodeId:
|
|
204
|
-
}
|
|
280
|
+
functionNodeId: context.callableOwnerAt(reference.location)?.node_id ?? null,
|
|
281
|
+
});
|
|
205
282
|
const binding = reference.bindingId === null
|
|
206
283
|
? undefined
|
|
207
284
|
: context.bindingNodes.get(reference.bindingId);
|
|
@@ -244,7 +321,7 @@ const projectCalls = (context) => {
|
|
|
244
321
|
const argumentNode = createArgumentNode(context, callNode, call.callSiteId, argument);
|
|
245
322
|
if (argumentNode !== null)
|
|
246
323
|
context.argumentNodes.set(`${call.callSiteId}\u0000${String(argument.index)}`, argumentNode);
|
|
247
|
-
const references =
|
|
324
|
+
const references = context.referenceNodesWithin(argument.location);
|
|
248
325
|
for (const reference of references)
|
|
249
326
|
addRelation(context.state, {
|
|
250
327
|
source: reference,
|
|
@@ -283,7 +360,7 @@ const projectCalls = (context) => {
|
|
|
283
360
|
});
|
|
284
361
|
projectSemanticReturnValues(context);
|
|
285
362
|
};
|
|
286
|
-
const createArgumentNode = (context, callNode, callSiteId, argument) =>
|
|
363
|
+
const createArgumentNode = (context, callNode, callSiteId, argument) => retainNode(context.state, context.file, {
|
|
287
364
|
kind: "expression",
|
|
288
365
|
roleKey: `argument:${callSiteId}:${String(argument.index)}`,
|
|
289
366
|
location: argument.location,
|
|
@@ -291,4 +368,4 @@ const createArgumentNode = (context, callNode, callSiteId, argument) => addNode(
|
|
|
291
368
|
? "spread argument"
|
|
292
369
|
: `argument ${String(argument.index)}`,
|
|
293
370
|
functionNodeId: callNode.function_node_id,
|
|
294
|
-
}
|
|
371
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createJavaScriptSemanticGraphUnknown } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
2
|
-
import {
|
|
2
|
+
import { retainSemanticGraphNode, addSemanticGraphRelation, addSemanticGraphUnknown, } from "./JavaScriptSemanticGraphConstruction.js";
|
|
3
3
|
import { unknownSemanticEvidence } from "./JavaScriptSemanticGraphEvidence.js";
|
|
4
4
|
import { semanticCallSiteAt, } from "./JavaScriptSemanticGraphFlowProjection.js";
|
|
5
5
|
/** Project child creation, argv/env/stdio, listeners, and signals. */
|
|
@@ -17,15 +17,14 @@ export const projectSemanticChildProcesses = (context) => {
|
|
|
17
17
|
for (const interaction of context.ir.childProcessInteractions)
|
|
18
18
|
projectInteraction(context, interaction, processNodes);
|
|
19
19
|
};
|
|
20
|
-
const addChildProcessNode = (context, spawn) =>
|
|
20
|
+
const addChildProcessNode = (context, spawn) => retainSemanticGraphNode(context.state, context.file, {
|
|
21
21
|
kind: "child-process",
|
|
22
22
|
roleKey: spawn.processId,
|
|
23
23
|
location: spawn.location,
|
|
24
24
|
label: spawn.command ?? spawn.method,
|
|
25
25
|
functionNodeId: spawn.ownerCallableId === null
|
|
26
26
|
? null
|
|
27
|
-
: (context.callableNodes.get(spawn.ownerCallableId)?.node_id ??
|
|
28
|
-
null),
|
|
27
|
+
: (context.callableNodes.get(spawn.ownerCallableId)?.node_id ?? null),
|
|
29
28
|
properties: {
|
|
30
29
|
argv_count: spawn.argvCount,
|
|
31
30
|
command: spawn.command,
|
|
@@ -33,7 +32,7 @@ const addChildProcessNode = (context, spawn) => addSemanticGraphNode(context.sta
|
|
|
33
32
|
method: spawn.method,
|
|
34
33
|
stdio_mode: spawn.stdioMode,
|
|
35
34
|
},
|
|
36
|
-
}
|
|
35
|
+
});
|
|
37
36
|
const projectSpawn = (context, spawn, child) => {
|
|
38
37
|
const callSite = semanticCallSiteAt(context, spawn.location);
|
|
39
38
|
addSemanticGraphRelation(context.state, {
|
|
@@ -85,14 +84,14 @@ const projectSpawn = (context, spawn, child) => {
|
|
|
85
84
|
candidateNodeIds: [],
|
|
86
85
|
});
|
|
87
86
|
};
|
|
88
|
-
const addStdioNode = (context, spawn, child) =>
|
|
87
|
+
const addStdioNode = (context, spawn, child) => retainSemanticGraphNode(context.state, context.file, {
|
|
89
88
|
kind: "stdio",
|
|
90
89
|
roleKey: `stdio:${spawn.processId}`,
|
|
91
90
|
location: spawn.location,
|
|
92
91
|
label: spawn.stdioMode,
|
|
93
92
|
functionNodeId: child.function_node_id,
|
|
94
93
|
properties: { mode: spawn.stdioMode },
|
|
95
|
-
}
|
|
94
|
+
});
|
|
96
95
|
const projectInteraction = (context, interaction, processNodes) => {
|
|
97
96
|
const children = interaction.linkedProcessIds.flatMap((identifier) => {
|
|
98
97
|
const child = processNodes.get(identifier);
|
|
@@ -128,31 +127,31 @@ const projectInteraction = (context, interaction, processNodes) => {
|
|
|
128
127
|
candidateNodeIds: children.map(({ node_id: identifier }) => identifier),
|
|
129
128
|
});
|
|
130
129
|
};
|
|
131
|
-
const addChildListenerNode = (context, interaction) =>
|
|
130
|
+
const addChildListenerNode = (context, interaction) => retainSemanticGraphNode(context.state, context.file, {
|
|
132
131
|
kind: "listener",
|
|
133
132
|
roleKey: interaction.interactionId,
|
|
134
133
|
location: interaction.listenerLocation ?? interaction.location,
|
|
135
134
|
label: interaction.eventName,
|
|
136
135
|
functionNodeId: interaction.ownerCallableId === null
|
|
137
136
|
? null
|
|
138
|
-
: (context.callableNodes.get(interaction.ownerCallableId)
|
|
139
|
-
|
|
137
|
+
: (context.callableNodes.get(interaction.ownerCallableId)?.node_id ??
|
|
138
|
+
null),
|
|
140
139
|
properties: {
|
|
141
140
|
event_name: interaction.eventName,
|
|
142
141
|
method: interaction.method,
|
|
143
142
|
},
|
|
144
|
-
}
|
|
145
|
-
const addSignalNode = (context, interaction) =>
|
|
143
|
+
});
|
|
144
|
+
const addSignalNode = (context, interaction) => retainSemanticGraphNode(context.state, context.file, {
|
|
146
145
|
kind: "signal",
|
|
147
146
|
roleKey: interaction.interactionId,
|
|
148
147
|
location: interaction.location,
|
|
149
148
|
label: interaction.signalName,
|
|
150
149
|
functionNodeId: interaction.ownerCallableId === null
|
|
151
150
|
? null
|
|
152
|
-
: (context.callableNodes.get(interaction.ownerCallableId)
|
|
153
|
-
|
|
151
|
+
: (context.callableNodes.get(interaction.ownerCallableId)?.node_id ??
|
|
152
|
+
null),
|
|
154
153
|
properties: { signal_name: interaction.signalName },
|
|
155
|
-
}
|
|
154
|
+
});
|
|
156
155
|
const addChildUnknown = (input) => {
|
|
157
156
|
const { context, node, location, relationKinds, detail, candidateNodeIds } = input;
|
|
158
157
|
addSemanticGraphUnknown(context.state, createJavaScriptSemanticGraphUnknown({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { javascriptDisplayText } from "../../domain/javascript/javascriptAstValues.js";
|
|
2
|
-
import { createJavaScriptSemanticGraphNode, createJavaScriptSemanticGraphRelation, } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
2
|
+
import { createJavaScriptSemanticGraphNode, createJavaScriptSemanticGraphRelation, javaScriptSemanticNodeId, } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
3
3
|
import { inferredSemanticEvidence, observedSemanticEvidence, unavailableSemanticRootEvidence, } from "./JavaScriptSemanticGraphEvidence.js";
|
|
4
4
|
/** Create empty projection state with structural application-node mappings. */
|
|
5
5
|
export const createSemanticGraphProjectionState = (applicationGraph) => {
|
|
@@ -12,6 +12,18 @@ export const createSemanticGraphProjectionState = (applicationGraph) => {
|
|
|
12
12
|
applicationNodeIdsByLocation: index.identifiers,
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
/** Bind retained semantic identities after all application observations exist. */
|
|
16
|
+
export const bindSemanticGraphApplicationNodes = (state, applicationGraph) => {
|
|
17
|
+
const index = indexApplicationNodes(applicationGraph.nodes).identifiers;
|
|
18
|
+
for (const [identifier, node] of state.nodes) {
|
|
19
|
+
state.nodes.set(identifier, {
|
|
20
|
+
...node,
|
|
21
|
+
application_node_ids: [
|
|
22
|
+
...(index.get(applicationLocationKey(node.identity.artifact_sha256, node.identity.module_path, node.identity.source_range)) ?? []),
|
|
23
|
+
],
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
15
27
|
/** Construct one canonical semantic node backed by an exact artifact file. */
|
|
16
28
|
export const constructSemanticGraphNode = (file, input, state) => createJavaScriptSemanticGraphNode({
|
|
17
29
|
kind: input.kind,
|
|
@@ -27,11 +39,39 @@ export const constructSemanticGraphNode = (file, input, state) => createJavaScri
|
|
|
27
39
|
properties: input.properties ?? {},
|
|
28
40
|
evidence: observedSemanticEvidence(file, input.location),
|
|
29
41
|
});
|
|
42
|
+
/** Reuse retained identities and reject exhausted budgets before allocation. */
|
|
43
|
+
export const retainSemanticGraphNode = (state, file, input) => {
|
|
44
|
+
const identifier = javaScriptSemanticNodeId({
|
|
45
|
+
kind: input.kind,
|
|
46
|
+
identity: {
|
|
47
|
+
artifact_sha256: file.sha256,
|
|
48
|
+
module_path: file.path,
|
|
49
|
+
source_range: input.location,
|
|
50
|
+
role_key: input.roleKey,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
const existing = state.nodes.get(identifier);
|
|
54
|
+
if (existing !== undefined)
|
|
55
|
+
return existing;
|
|
56
|
+
if (typeof state.fileNodeBudget === "number" && state.fileNodeBudget <= 0) {
|
|
57
|
+
state.fileNodesDropped = true;
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return addSemanticGraphNode(state, constructSemanticGraphNode(file, input, state));
|
|
61
|
+
};
|
|
30
62
|
/** Retain one canonical semantic node. */
|
|
31
63
|
export const addSemanticGraphNode = (state, node) => {
|
|
32
64
|
const existing = state.nodes.get(node.node_id);
|
|
33
65
|
if (existing !== undefined)
|
|
34
66
|
return existing;
|
|
67
|
+
const budget = state.fileNodeBudget;
|
|
68
|
+
if (typeof budget === "number") {
|
|
69
|
+
if (budget <= 0) {
|
|
70
|
+
state.fileNodesDropped = true;
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
state.fileNodeBudget = budget - 1;
|
|
74
|
+
}
|
|
35
75
|
state.nodes.set(node.node_id, node);
|
|
36
76
|
return node;
|
|
37
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createJavaScriptSemanticGraphUnknown } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
2
|
-
import {
|
|
2
|
+
import { retainSemanticGraphNode, addSemanticGraphRelation, addSemanticGraphUnknown, } from "./JavaScriptSemanticGraphConstruction.js";
|
|
3
3
|
import { unknownSemanticEvidence } from "./JavaScriptSemanticGraphEvidence.js";
|
|
4
4
|
import { semanticCallSiteAt, } from "./JavaScriptSemanticGraphFlowProjection.js";
|
|
5
5
|
/** Project environment, argv, file, default, and precedence candidates. */
|
|
@@ -41,7 +41,7 @@ export const projectSemanticConfiguration = (context) => {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
const addConfigurationNode = (context, operation) =>
|
|
44
|
+
const addConfigurationNode = (context, operation) => retainSemanticGraphNode(context.state, context.file, {
|
|
45
45
|
kind: "config-source",
|
|
46
46
|
roleKey: operation.configId,
|
|
47
47
|
location: operation.location,
|
|
@@ -55,7 +55,7 @@ const addConfigurationNode = (context, operation) => addSemanticGraphNode(contex
|
|
|
55
55
|
source_kind: operation.kind,
|
|
56
56
|
value: operation.value,
|
|
57
57
|
},
|
|
58
|
-
}
|
|
58
|
+
});
|
|
59
59
|
const configurationRelation = (operation) => operation.kind === "environment"
|
|
60
60
|
? "reads-environment"
|
|
61
61
|
: operation.kind === "argv"
|
|
@@ -94,7 +94,7 @@ export const projectSemanticRequests = (context) => {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
const addRequestNode = (context, operation) =>
|
|
97
|
+
const addRequestNode = (context, operation) => retainSemanticGraphNode(context.state, context.file, {
|
|
98
98
|
kind: operation.kind === "request" ? "request" : "response",
|
|
99
99
|
roleKey: operation.requestId,
|
|
100
100
|
location: operation.location,
|
|
@@ -108,7 +108,7 @@ const addRequestNode = (context, operation) => addSemanticGraphNode(context.stat
|
|
|
108
108
|
method: operation.method,
|
|
109
109
|
operation_kind: operation.kind,
|
|
110
110
|
},
|
|
111
|
-
}
|
|
111
|
+
});
|
|
112
112
|
const projectRequestConstruction = (context, operation, request) => {
|
|
113
113
|
const callSite = semanticCallSiteAt(context, operation.location);
|
|
114
114
|
addSemanticGraphRelation(context.state, {
|
|
@@ -182,7 +182,7 @@ export const projectSemanticBoundaries = (context) => {
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
const addBoundaryNode = (context, operation) =>
|
|
185
|
+
const addBoundaryNode = (context, operation) => retainSemanticGraphNode(context.state, context.file, {
|
|
186
186
|
kind: "boundary",
|
|
187
187
|
roleKey: operation.boundaryId,
|
|
188
188
|
location: operation.location,
|
|
@@ -195,7 +195,7 @@ const addBoundaryNode = (context, operation) => addSemanticGraphNode(context.sta
|
|
|
195
195
|
boundary_kind: operation.kind,
|
|
196
196
|
method: operation.method,
|
|
197
197
|
},
|
|
198
|
-
}
|
|
198
|
+
});
|
|
199
199
|
const bindingOrOwner = (context, bindingId, callableId) => (bindingId === null ? undefined : context.bindingNodes.get(bindingId)) ??
|
|
200
200
|
(callableId === null
|
|
201
201
|
? context.moduleNode
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { createJavaScriptSemanticGraphUnknown } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
2
2
|
import { sourceRangesEqual } from "../../domain/javascript/javascriptStaticAnalysisHelpers.js";
|
|
3
|
-
import {
|
|
3
|
+
import { retainSemanticGraphNode, addSemanticGraphRelation, addSemanticGraphUnknown, } from "./JavaScriptSemanticGraphConstruction.js";
|
|
4
4
|
import { inferredSemanticEvidenceAt, unknownSemanticEvidence, } from "./JavaScriptSemanticGraphEvidence.js";
|
|
5
|
-
import { semanticNodesWithinRange } from "./JavaScriptSemanticGraphProjection.js";
|
|
6
5
|
/** Find the retained call-site node at one exact semantic source range. */
|
|
7
6
|
export const semanticCallSiteAt = (context, location) => {
|
|
8
|
-
|
|
9
|
-
return call === undefined
|
|
10
|
-
? undefined
|
|
11
|
-
: context.callSiteNodes.get(call.callSiteId);
|
|
7
|
+
return context.callSiteAt(location);
|
|
12
8
|
};
|
|
13
9
|
/** Project explicit static Promise/task ownership without runtime claims. */
|
|
14
10
|
export const projectSemanticPromises = (context) => {
|
|
@@ -16,7 +12,7 @@ export const projectSemanticPromises = (context) => {
|
|
|
16
12
|
const owner = operation.ownerCallableId === null
|
|
17
13
|
? undefined
|
|
18
14
|
: context.callableNodes.get(operation.ownerCallableId);
|
|
19
|
-
const node =
|
|
15
|
+
const node = retainSemanticGraphNode(context.state, context.file, {
|
|
20
16
|
kind: operation.kind === "awaited-expression" ? "task" : "promise",
|
|
21
17
|
roleKey: operation.promiseId,
|
|
22
18
|
location: operation.location,
|
|
@@ -28,7 +24,7 @@ export const projectSemanticPromises = (context) => {
|
|
|
28
24
|
ownership: operation.ownership,
|
|
29
25
|
source_resolution: operation.sourceResolution,
|
|
30
26
|
},
|
|
31
|
-
}
|
|
27
|
+
});
|
|
32
28
|
return node === null ? [] : [[operation.promiseId, node]];
|
|
33
29
|
}));
|
|
34
30
|
for (const operation of context.ir.promiseOperations) {
|
|
@@ -134,7 +130,7 @@ export const projectSemanticReturnValues = (context) => {
|
|
|
134
130
|
for (const callable of context.ir.callables)
|
|
135
131
|
for (const site of callable.returnSites) {
|
|
136
132
|
const returnNode = context.returnSiteNodes.get(site.returnSiteId);
|
|
137
|
-
const references =
|
|
133
|
+
const references = context.referenceNodesWithin(site.location);
|
|
138
134
|
for (const reference of references)
|
|
139
135
|
addSemanticGraphRelation(context.state, {
|
|
140
136
|
source: reference,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createJavaScriptSemanticGraphUnknown } from "../../domain/javascript/javascriptSemanticGraph.js";
|
|
2
|
-
import {
|
|
2
|
+
import { retainSemanticGraphNode, addSemanticGraphRelation, addSemanticGraphUnknown, } from "./JavaScriptSemanticGraphConstruction.js";
|
|
3
3
|
import { unknownSemanticEvidence } from "./JavaScriptSemanticGraphEvidence.js";
|
|
4
4
|
import { semanticPropertySlot } from "./JavaScriptSemanticGraphValueProjection.js";
|
|
5
5
|
/** Project static object reads, writes, spreads, and destructuring. */
|
|
@@ -45,7 +45,7 @@ export const projectSemanticObjects = (context) => {
|
|
|
45
45
|
addObjectUnknown(context, operation, slot ?? occurrence);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
const addObjectOccurrence = (context, operation) =>
|
|
48
|
+
const addObjectOccurrence = (context, operation) => retainSemanticGraphNode(context.state, context.file, {
|
|
49
49
|
kind: "expression",
|
|
50
50
|
roleKey: operation.objectOperationId,
|
|
51
51
|
location: operation.location,
|
|
@@ -60,7 +60,7 @@ const addObjectOccurrence = (context, operation) => addSemanticGraphNode(context
|
|
|
60
60
|
operation_kind: operation.kind,
|
|
61
61
|
property_name: operation.propertyName,
|
|
62
62
|
},
|
|
63
|
-
}
|
|
63
|
+
});
|
|
64
64
|
const addObjectUnknown = (context, operation, node) => {
|
|
65
65
|
const relation = operation.kind === "read"
|
|
66
66
|
? "reads-property"
|