reverseport 0.0.0-stage → 1.2.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/DISCLAIMER.md +136 -0
- package/LICENSE +22 -0
- package/README.md +289 -2
- package/RESPONSIBLE-USE.md +22 -0
- package/THIRD_PARTY_NOTICES.md +130 -0
- package/bin/reverseport.mjs +136 -0
- package/bridge/android/ReaJadxBridge.java +270 -0
- package/bridge/ghidra/ReaGhidraAnalysisOptions.java +38 -0
- package/bridge/ghidra/ReaGhidraApplySeeds.java +151 -0
- package/bridge/ghidra/ReaGhidraBridge.java +3858 -0
- package/bridge/ghidra/ReaGhidraBundleActivator.java +14 -0
- package/bridge/ghidra/ReaGhidraExtensions.java +113 -0
- package/bridge/ghidra/ReaGhidraMipsSoftFloat.java +176 -0
- package/bridge/ghidra/ReaGhidraNoReturnFix.java +123 -0
- package/bridge/ghidra/ReaGhidraPrepareCom.java +32 -0
- package/bridge/ghidra/ReaGhidraPrepareRaw.java +36 -0
- package/bridge/hopper_bridge.py +1162 -0
- package/bridge/mitmproxy/capture.py +208 -0
- package/bridge/native/NativeUIChildren.swift +27 -0
- package/bridge/native/ReaNativeUI.swift +171 -0
- package/bridge/native/rea_lldb_tracer.py +839 -0
- package/bridge/process/ProcessRunTokenReader.swift +339 -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 +314 -0
- package/bridge/pwntools/recorded_crash.py +39 -0
- package/bridge/pwntools/recorded_crash_impl.py +147 -0
- package/dist/adb/AdbConfiguration.js +88 -0
- package/dist/adb/AdbDeviceOutput.js +191 -0
- package/dist/adb/AdbDirectoryListing.js +80 -0
- package/dist/adb/AdbHostFileName.js +34 -0
- package/dist/adb/AdbProvider.js +1227 -0
- package/dist/adb/AdbShellOutput.js +267 -0
- package/dist/android/AndroidTargetSnapshot.js +118 -0
- package/dist/android/JadxAnalysis.js +201 -0
- package/dist/android/JadxConfiguration.js +320 -0
- package/dist/android/JadxMcpTransport.js +188 -0
- package/dist/android/JadxProtocol.js +115 -0
- package/dist/android/JadxProvider.js +337 -0
- package/dist/android/JadxRelease.js +27 -0
- package/dist/android/JadxSession.js +172 -0
- package/dist/apktool/ApktoolConfiguration.js +120 -0
- package/dist/apktool/ApktoolDecodeOutput.js +142 -0
- package/dist/apktool/ApktoolProvider.js +522 -0
- package/dist/application/AnalysisContextQueries.js +128 -0
- package/dist/application/AnalysisDocument.js +32 -0
- package/dist/application/AnalysisProvider.js +27 -0
- package/dist/application/AppBundleExecutable.js +192 -0
- package/dist/application/BinaryTargetResolver.js +356 -0
- package/dist/application/BrowserEvidence.js +127 -0
- package/dist/application/BrowserObservationPort.js +1 -0
- package/dist/application/BrowserObservationService.js +86 -0
- package/dist/application/BrowserScenarioCapturePort.js +1 -0
- package/dist/application/BrowserScenarioCaptureService.js +17 -0
- package/dist/application/BrowserScenarioEvidence.js +28 -0
- package/dist/application/CallPathTracing.js +182 -0
- package/dist/application/CapabilityClientRequirements.js +17 -0
- package/dist/application/CapabilityInventory.js +525 -0
- package/dist/application/ClientConfigPath.js +35 -0
- package/dist/application/ClientConfigurationDocument.js +1196 -0
- package/dist/application/ClientConfigurationFiles.js +91 -0
- package/dist/application/ClientRegistrationEnvironment.js +39 -0
- package/dist/application/ClientRegistrationIdentity.js +80 -0
- package/dist/application/ClientRegistrationStatus.js +233 -0
- package/dist/application/DirectAnalysis.js +371 -0
- package/dist/application/DirectAnalysisCleanup.js +71 -0
- package/dist/application/DirectAnalysisDependencies.js +1 -0
- package/dist/application/DirectAnalysisStatus.js +22 -0
- package/dist/application/Doctor.js +349 -0
- package/dist/application/DoctorDiagnostics.js +169 -0
- package/dist/application/DoctorProviderIds.js +2 -0
- package/dist/application/DoctorScope.js +113 -0
- package/dist/application/DshCordisPatch.js +342 -0
- package/dist/application/DshCordisYaml.js +155 -0
- package/dist/application/EnhancedLiteralTracing.js +88 -0
- package/dist/application/EnhancedToolTypes.js +4 -0
- package/dist/application/EnhancedTools.js +428 -0
- package/dist/application/EvidenceBundleCommands.js +70 -0
- package/dist/application/EvidenceBundleFiles.js +79 -0
- package/dist/application/EvidenceInputResolver.js +30 -0
- package/dist/application/FunctionAnalysisEvidence.js +34 -0
- package/dist/application/GeminiClientSettings.js +139 -0
- package/dist/application/HermesClientHome.js +115 -0
- package/dist/application/HopperDownload.js +39 -0
- package/dist/application/InventoryProjectionEvidence.js +44 -0
- package/dist/application/InvestigationProviders.js +130 -0
- package/dist/application/JsonFiles.js +225 -0
- package/dist/application/JsonInputFile.js +410 -0
- package/dist/application/LinuxHopper.js +232 -0
- package/dist/application/MacHopper.js +235 -0
- package/dist/application/MipsElfMetadata.js +175 -0
- package/dist/application/MipsElfSharedLoad.js +164 -0
- package/dist/application/OptionalObservationProviders.js +3 -0
- package/dist/application/ProcedureAddressResolution.js +11 -0
- package/dist/application/ProgressReporter.js +30 -0
- package/dist/application/ProviderOperationExecution.js +31 -0
- package/dist/application/RealHopperAssertions.js +135 -0
- package/dist/application/ReconstructionCoverageService.js +22 -0
- package/dist/application/ReconstructionObligationAuthority.js +72 -0
- package/dist/application/ReconstructionObligationCandidates.js +286 -0
- package/dist/application/ReconstructionObligationLedgerDiagnostics.js +47 -0
- package/dist/application/ReconstructionObligationLedgerEvaluation.js +238 -0
- package/dist/application/ReconstructionObligationLedgerProjection.js +15 -0
- package/dist/application/ReconstructionObligationLedgerService.js +54 -0
- package/dist/application/ReconstructionObligationOriginalCases.js +34 -0
- package/dist/application/ReconstructionObligationPolicies.js +132 -0
- package/dist/application/ReferenceSourceImport.js +200 -0
- package/dist/application/ReferenceSourceImportEntries.js +151 -0
- package/dist/application/ReferenceSourceImportPolicy.js +125 -0
- package/dist/application/ReferenceSourceImportTypes.js +47 -0
- package/dist/application/ReferenceSourceVcsAdapter.js +180 -0
- package/dist/application/RegularFileRead.js +120 -0
- package/dist/application/Setup.js +408 -0
- package/dist/application/SetupClientConfiguration.js +314 -0
- package/dist/application/SetupClients.js +44 -0
- package/dist/application/SetupHost.js +203 -0
- package/dist/application/SetupInstallFailure.js +77 -0
- package/dist/application/SetupPlan.js +210 -0
- package/dist/application/SetupRegistrationEnvironment.js +5 -0
- package/dist/application/SetupSkill.js +248 -0
- package/dist/application/SetupTypes.js +17 -0
- package/dist/application/SupportedClients.js +469 -0
- package/dist/application/TypeScriptEmittedSourceCandidates.js +23 -0
- package/dist/application/Uninstall.js +452 -0
- package/dist/application/UninstallFailure.js +14 -0
- package/dist/application/Update.js +137 -0
- package/dist/application/UpdateFailure.js +17 -0
- package/dist/application/UpdateMaintenance.js +111 -0
- package/dist/application/UpdateRuntime.js +264 -0
- package/dist/application/Utf8JsonInput.js +71 -0
- package/dist/application/ValidateSelectedWebScript.js +27 -0
- package/dist/application/WebModulePorts.js +1 -0
- package/dist/application/WebModuleTraceService.js +214 -0
- package/dist/application/WebNetworkCapturePort.js +1 -0
- package/dist/application/WebNetworkCaptureService.js +134 -0
- package/dist/application/WebRuntimePort.js +1 -0
- package/dist/application/WebRuntimeService.js +75 -0
- package/dist/application/WebScriptArtifactPort.js +1 -0
- package/dist/application/WebScriptExportService.js +214 -0
- package/dist/application/WebSourceLocationPorts.js +1 -0
- package/dist/application/WebSourceLocationService.js +177 -0
- package/dist/application/WindowsCapabilities.js +87 -0
- package/dist/application/WorkflowEvidence.js +105 -0
- package/dist/application/XrefsAddressResolution.js +45 -0
- package/dist/application/adb/AdbDeviceAnalysisPort.js +1 -0
- package/dist/application/adb/AdbDeviceAnalysisService.js +13 -0
- package/dist/application/analysisView/AnalysisViewService.js +133 -0
- package/dist/application/android/AndroidAnalysisPort.js +1 -0
- package/dist/application/android/AndroidAnalysisService.js +37 -0
- package/dist/application/android/AndroidApplicationService.js +17 -0
- package/dist/application/android/AndroidSearchEvidenceSummary.js +100 -0
- package/dist/application/apktool/ApktoolResourceAnalysisPort.js +1 -0
- package/dist/application/apktool/ApktoolResourceAnalysisService.js +13 -0
- package/dist/application/apple/AppleApplicationService.js +17 -0
- package/dist/application/artifacts/ArtifactExtractionDestination.js +5 -0
- package/dist/application/binary/AbortablePromise.js +28 -0
- package/dist/application/binary/AnalysisClientCleanup.js +15 -0
- package/dist/application/binary/AnalysisProviderEvaluation.js +77 -0
- package/dist/application/binary/AnalysisProviderRegistry.js +235 -0
- package/dist/application/binary/AnalysisSnapshotCache.js +232 -0
- package/dist/application/binary/AnalysisSnapshotFiles.js +96 -0
- package/dist/application/binary/BinarySession.js +605 -0
- package/dist/application/binary/BinarySessionComposition.js +9 -0
- package/dist/application/binary/BinarySessionExecution.js +66 -0
- package/dist/application/binary/BinarySessionOpen.js +66 -0
- package/dist/application/binary/BinarySessionPort.js +1 -0
- package/dist/application/binary/BinarySessionRecords.js +216 -0
- package/dist/application/binary/BinarySessionStatus.js +219 -0
- package/dist/application/binary/BinaryTargetSummary.js +9 -0
- package/dist/application/binary/CompositeProvider.js +103 -0
- package/dist/application/binary/LazyAnalysisProvider.js +105 -0
- package/dist/application/binary/SessionProviderRouter.js +118 -0
- package/dist/application/binaryDiagnostics/BinaryLayoutPort.js +1 -0
- package/dist/application/binaryDiagnostics/BinaryLayoutService.js +60 -0
- package/dist/application/binaryDiagnostics/PeResourcesPort.js +1 -0
- package/dist/application/binaryDiagnostics/PeResourcesService.js +111 -0
- package/dist/application/binaryDiagnostics/RecordedCrashPort.js +1 -0
- package/dist/application/binaryDiagnostics/RecordedCrashService.js +63 -0
- package/dist/application/evm/EvmInterfacePort.js +1 -0
- package/dist/application/evm/EvmInterfaceService.js +67 -0
- package/dist/application/firmware/FirmwareAnalysisPort.js +1 -0
- package/dist/application/firmware/FirmwareAnalysisService.js +38 -0
- package/dist/application/go/GoBinaryPort.js +1 -0
- package/dist/application/go/GoBinaryService.js +77 -0
- package/dist/application/harmony/HarmonyApplicationService.js +17 -0
- package/dist/application/homebrew.js +67 -0
- package/dist/application/investigation/EvidenceLedger.js +338 -0
- package/dist/application/investigation/InspectEvidenceBundle.js +18 -0
- package/dist/application/investigation/InvestigationRecordPort.js +1 -0
- package/dist/application/investigation/InvestigationRecords.js +65 -0
- package/dist/application/investigation/UnknownEvidence.js +37 -0
- package/dist/application/javascript/ElectronActiveEvidence.js +29 -0
- package/dist/application/javascript/ElectronActiveObservationPort.js +1 -0
- package/dist/application/javascript/ElectronActiveObservationService.js +51 -0
- package/dist/application/javascript/ElectronBoundaryAnalysis.js +118 -0
- package/dist/application/javascript/ElectronBoundaryGraph.js +11 -0
- package/dist/application/javascript/ElectronBoundaryGraphCallPaths.js +134 -0
- package/dist/application/javascript/ElectronBoundaryGraphContext.js +63 -0
- package/dist/application/javascript/ElectronBoundaryGraphIpc.js +261 -0
- package/dist/application/javascript/ElectronBoundaryGraphNative.js +102 -0
- package/dist/application/javascript/ElectronBoundaryGraphWindows.js +224 -0
- package/dist/application/javascript/ElectronEvidence.js +37 -0
- package/dist/application/javascript/ElectronObservationPort.js +1 -0
- package/dist/application/javascript/ElectronObservationService.js +26 -0
- package/dist/application/javascript/JavaScriptAnalysisControl.js +34 -0
- package/dist/application/javascript/JavaScriptApplicationEvidence.js +49 -0
- package/dist/application/javascript/JavaScriptApplicationEvidenceGraph.js +173 -0
- package/dist/application/javascript/JavaScriptApplicationService.js +170 -0
- package/dist/application/javascript/JavaScriptApplicationWorkflowEvidence.js +67 -0
- package/dist/application/javascript/JavaScriptApplicationWorkflowService.js +194 -0
- package/dist/application/javascript/JavaScriptArtifactAnalysis.js +431 -0
- package/dist/application/javascript/JavaScriptArtifactAnalysisTypes.js +1 -0
- package/dist/application/javascript/JavaScriptArtifactGraphAccumulator.js +89 -0
- package/dist/application/javascript/JavaScriptArtifactGraphBuilder.js +193 -0
- package/dist/application/javascript/JavaScriptArtifactGraphBundlers.js +229 -0
- package/dist/application/javascript/JavaScriptArtifactGraphContext.js +194 -0
- package/dist/application/javascript/JavaScriptArtifactGraphDocuments.js +160 -0
- package/dist/application/javascript/JavaScriptArtifactGraphEvidence.js +85 -0
- package/dist/application/javascript/JavaScriptArtifactGraphFindings.js +349 -0
- package/dist/application/javascript/JavaScriptArtifactGraphStructure.js +424 -0
- package/dist/application/javascript/JavaScriptArtifactPathResolution.js +836 -0
- package/dist/application/javascript/JavaScriptArtifactReconstruction.js +245 -0
- package/dist/application/javascript/JavaScriptArtifactReconstructionInput.js +12 -0
- package/dist/application/javascript/JavaScriptJsonModules.js +40 -0
- package/dist/application/javascript/JavaScriptModuleRelationships.js +304 -0
- package/dist/application/javascript/JavaScriptRecoveryPort.js +1 -0
- package/dist/application/javascript/JavaScriptRecoveryService.js +77 -0
- package/dist/application/javascript/JavaScriptRuntimeObservationEvidence.js +36 -0
- package/dist/application/javascript/JavaScriptRuntimeObservationPort.js +1 -0
- package/dist/application/javascript/JavaScriptRuntimeObservationService.js +28 -0
- package/dist/application/javascript/JavaScriptRuntimeReconciliationEvidence.js +24 -0
- package/dist/application/javascript/JavaScriptRuntimeReconciliationService.js +52 -0
- package/dist/application/javascript/JavaScriptSemanticGraphAsyncProjection.js +163 -0
- package/dist/application/javascript/JavaScriptSemanticGraphBuilder.js +527 -0
- package/dist/application/javascript/JavaScriptSemanticGraphChildProcessProjection.js +165 -0
- package/dist/application/javascript/JavaScriptSemanticGraphConstruction.js +156 -0
- package/dist/application/javascript/JavaScriptSemanticGraphDataProjection.js +216 -0
- package/dist/application/javascript/JavaScriptSemanticGraphElectronProjection.js +61 -0
- package/dist/application/javascript/JavaScriptSemanticGraphEvidence.js +86 -0
- package/dist/application/javascript/JavaScriptSemanticGraphFingerprintProjection.js +25 -0
- package/dist/application/javascript/JavaScriptSemanticGraphFlowProjection.js +183 -0
- package/dist/application/javascript/JavaScriptSemanticGraphObjectProjection.js +112 -0
- package/dist/application/javascript/JavaScriptSemanticGraphProjection.js +144 -0
- package/dist/application/javascript/JavaScriptSemanticGraphResourceProjection.js +58 -0
- package/dist/application/javascript/JavaScriptSemanticGraphValueProjection.js +136 -0
- package/dist/application/javascript/JavaScriptSemanticTraceService.js +41 -0
- package/dist/application/jeb/JebAnalysisPort.js +1 -0
- package/dist/application/jeb/JebAnalysisService.js +13 -0
- package/dist/application/managed/ManagedApplicationGraphService.js +55 -0
- package/dist/application/managed/ManagedMemberComparisonService.js +125 -0
- package/dist/application/managed/ManagedNativeVerificationService.js +40 -0
- package/dist/application/managed/ManagedReconstructionService.js +59 -0
- package/dist/application/native/NativeApiInspection.js +77 -0
- package/dist/application/native/NativeCallRoutes.js +73 -0
- package/dist/application/native/NativeDispatchMetadataInspection.js +33 -0
- package/dist/application/native/NativeUiActionTrace.js +427 -0
- package/dist/application/native/NativeValueTrace.js +340 -0
- package/dist/application/process/ProcessCli.js +190 -0
- package/dist/application/process/ProcessEvidence.js +30 -0
- package/dist/application/wasm/WasmArtifactPort.js +1 -0
- package/dist/application/wasm/WasmArtifactService.js +72 -0
- package/dist/application/workflowInputError.js +18 -0
- package/dist/artifacts/ArtifactHash.js +29 -0
- package/dist/artifacts/ArtifactPaths.js +167 -0
- package/dist/artifacts/ArtifactProvider.js +280 -0
- package/dist/artifacts/ArtifactProviderMetadata.js +34 -0
- package/dist/artifacts/ArtifactReader.js +77 -0
- package/dist/artifacts/ArtifactResourceScope.js +103 -0
- package/dist/artifacts/AsarArtifactReader.js +518 -0
- package/dist/artifacts/AsarEntryStream.js +76 -0
- package/dist/artifacts/AsarHeader.js +24 -0
- package/dist/artifacts/DirectoryArtifactReader.js +292 -0
- package/dist/artifacts/MachOSliceArtifactReader.js +342 -0
- package/dist/artifacts/NativeDmgArtifactReader.js +508 -0
- package/dist/artifacts/NativeDmgOwnership.js +109 -0
- package/dist/artifacts/SafeOutputTree.js +394 -0
- package/dist/artifacts/SafeOutputTreeCleanup.js +45 -0
- package/dist/artifacts/SafeOutputTreeCreationFailure.js +20 -0
- package/dist/artifacts/SafeOutputTreeIdentity.js +42 -0
- package/dist/artifacts/SafeOutputTreeReadback.js +33 -0
- package/dist/artifacts/StreamBytes.js +10 -0
- package/dist/artifacts/ZipArtifactReader.js +222 -0
- package/dist/artifacts/apple/AppleAssetCatalogAnalysis.js +190 -0
- package/dist/artifacts/apple/DylibResolutionReader.js +269 -0
- package/dist/artifacts/apple/InterfaceBuilderAnalysis.js +500 -0
- package/dist/artifacts/apple/InterfaceBuilderDecodeBudget.js +233 -0
- package/dist/artifacts/apple/KeyedArchiveReader.js +163 -0
- package/dist/artifacts/apple/MachoLoadCommandReader.js +393 -0
- package/dist/artifacts/apple/NibArchive.js +338 -0
- package/dist/artifacts/apple/NibViewHierarchy.js +157 -0
- package/dist/artifacts/apple/PlistNumberLiterals.js +164 -0
- package/dist/artifacts/extraction/ArtifactExtraction.js +253 -0
- package/dist/artifacts/hostExecutableMarking.js +16 -0
- package/dist/artifacts/inventory/ArtifactGraphConstruction.js +343 -0
- package/dist/artifacts/inventory/ArtifactInventory.js +16 -0
- package/dist/artifacts/inventory/classify.js +94 -0
- package/dist/artifacts/inventory/hashStableRootArtifact.js +70 -0
- package/dist/artifacts/inventory/reader.js +40 -0
- package/dist/artifacts/inventory/scanCanonical.js +213 -0
- package/dist/artifacts/inventory/scanReader.js +169 -0
- package/dist/artifacts/inventory/types.js +3 -0
- package/dist/artifacts/javascript/JavaScriptArtifactFiles.js +317 -0
- package/dist/artifacts/javascript/JavaScriptArtifactReader.js +6 -0
- package/dist/artifacts/javascript/JavaScriptSourceAnalysis.js +3 -0
- package/dist/artifacts/readStableArtifact.js +68 -0
- package/dist/browser/BrowserProcessStartup.js +89 -0
- package/dist/browser/BrowserScenarioPartialObservation.js +127 -0
- package/dist/browser/BrowserScenarioSecrets.js +137 -0
- package/dist/browser/BrowserScenarioSessionPort.js +1 -0
- package/dist/browser/CdpAuthorizedMainFrame.js +16 -0
- package/dist/browser/CdpAuthorizedTarget.js +22 -0
- package/dist/browser/CdpBrowserProvider.js +276 -0
- package/dist/browser/CdpCaptureCompleteness.js +92 -0
- package/dist/browser/CdpCaptureDocuments.js +375 -0
- package/dist/browser/CdpCaptureDomSvg.js +210 -0
- package/dist/browser/CdpCaptureEventBodyShapes.js +55 -0
- package/dist/browser/CdpCaptureEventHandlers.js +463 -0
- package/dist/browser/CdpCaptureEventHelpers.js +84 -0
- package/dist/browser/CdpCaptureEventState.js +1 -0
- package/dist/browser/CdpCaptureEventTypes.js +5 -0
- package/dist/browser/CdpCaptureEvents.js +199 -0
- package/dist/browser/CdpCaptureStorage.js +86 -0
- package/dist/browser/CdpCaptureStorageFingerprints.js +320 -0
- package/dist/browser/CdpCaptureValues.js +91 -0
- package/dist/browser/CdpCommandRejection.js +17 -0
- package/dist/browser/CdpConnection.js +303 -0
- package/dist/browser/CdpElectronInspection.js +253 -0
- package/dist/browser/CdpElectronProvider.js +115 -0
- package/dist/browser/CdpElectronScriptEvents.js +55 -0
- package/dist/browser/CdpElectronScripts.js +65 -0
- package/dist/browser/CdpElectronWorkers.js +57 -0
- package/dist/browser/CdpEndpoint.js +217 -0
- package/dist/browser/CdpObservationSession.js +332 -0
- package/dist/browser/CdpOptionalCommand.js +14 -0
- package/dist/browser/CdpPageCapture.js +278 -0
- package/dist/browser/CdpPageCaptureScripts.js +79 -0
- package/dist/browser/CdpPageCaptureWorkers.js +46 -0
- package/dist/browser/CdpSafeMetadata.js +284 -0
- package/dist/browser/CdpScreenshot.js +110 -0
- package/dist/browser/CdpTargetEvents.js +8 -0
- package/dist/browser/CdpTargetSession.js +65 -0
- package/dist/browser/CdpWebMcpDiscovery.js +361 -0
- package/dist/browser/ElectronFileScope.js +135 -0
- package/dist/browser/PlaywrightBrowserScenarioProvider.js +301 -0
- package/dist/browser/PlaywrightElectronActiveActions.js +257 -0
- package/dist/browser/PlaywrightElectronActiveProjection.js +141 -0
- package/dist/browser/PlaywrightElectronActiveProvider.js +293 -0
- package/dist/browser/PlaywrightExecutionBoundary.js +53 -0
- package/dist/browser/PlaywrightScenarioActions.js +58 -0
- package/dist/browser/PlaywrightScenarioArtifacts.js +162 -0
- package/dist/browser/PlaywrightScenarioBrowser.js +412 -0
- package/dist/browser/PlaywrightScenarioEvents.js +253 -0
- package/dist/browser/PlaywrightScenarioSession.js +279 -0
- package/dist/browser/PlaywrightScenarioStorage.js +507 -0
- package/dist/browser/PngVisualDiff.js +380 -0
- package/dist/browser/WebSourceMapFetcher.js +718 -0
- package/dist/browser/assets/LocalWebScriptArtifacts.js +89 -0
- package/dist/browser/assets/PageScriptCapture.js +32 -0
- package/dist/browser/assets/PublishWebScripts.js +140 -0
- package/dist/browser/assets/ScenarioScriptCapture.js +73 -0
- package/dist/browser/assets/ScriptCaptureAdapters.js +57 -0
- package/dist/browser/assets/WebArtifactReads.js +78 -0
- package/dist/browser/assets/WebSourceLocationArtifacts.js +41 -0
- package/dist/browser/execution/CdpEventListeners.js +79 -0
- package/dist/browser/execution/CdpExecutionCapture.js +135 -0
- package/dist/browser/execution/CdpExecutionCollection.js +57 -0
- package/dist/browser/execution/CdpExecutionWindow.js +100 -0
- package/dist/browser/execution/CdpListenerSelector.js +22 -0
- package/dist/browser/execution/CdpPreciseCoverage.js +45 -0
- package/dist/browser/execution/CdpRuntimeInitiator.js +18 -0
- package/dist/browser/execution/CdpRuntimeProtocol.js +106 -0
- package/dist/browser/execution/CdpRuntimeRequests.js +81 -0
- package/dist/browser/execution/CdpRuntimeSession.js +163 -0
- package/dist/browser/execution/CdpRuntimeSources.js +223 -0
- package/dist/browser/execution/CdpWebRuntimeProvider.js +51 -0
- package/dist/browser/history/CaptureFailures.js +153 -0
- package/dist/browser/history/CaptureFormatError.js +10 -0
- package/dist/browser/history/CaptureRedaction.js +68 -0
- package/dist/browser/history/CaptureRelease.js +23 -0
- package/dist/browser/history/HarCapture.js +179 -0
- package/dist/browser/history/HarCaptureAdapter.js +23 -0
- package/dist/browser/history/HarCaptureProcess.js +49 -0
- package/dist/browser/history/HarJson.js +92 -0
- package/dist/browser/history/HarSchema.js +72 -0
- package/dist/browser/history/HistoricalCaptureDecoder.js +198 -0
- package/dist/browser/history/HistoricalCaptureFormatAdapter.js +1 -0
- package/dist/browser/history/MitmproxyCaptureAdapter.js +46 -0
- package/dist/browser/modules/NativeModuleResolver.js +277 -0
- package/dist/browser/modules/WebModuleArtifacts.js +41 -0
- package/dist/browser/network/PlaywrightNetworkContent.js +71 -0
- package/dist/browser/network/PlaywrightScenarioNetwork.js +180 -0
- package/dist/browser/providerIdentities.js +24 -0
- package/dist/catalogIdentity.js +65 -0
- package/dist/cli/adbCommands.js +337 -0
- package/dist/cli/analysisSelector.js +23 -0
- package/dist/cli/analysisViewCommands.js +74 -0
- package/dist/cli/androidCommands.js +91 -0
- package/dist/cli/apktoolCommands.js +53 -0
- package/dist/cli/applicationCommands.js +173 -0
- package/dist/cli/artifactCommands.js +160 -0
- package/dist/cli/binaryDiagnosticsCommands.js +57 -0
- package/dist/cli/browserAdvancedCommands.js +189 -0
- package/dist/cli/browserCommands.js +125 -0
- package/dist/cli/commandCancellation.js +24 -0
- package/dist/cli/coreAnalysisCommands.js +7 -0
- package/dist/cli/coreBinaryCommands.js +283 -0
- package/dist/cli/coreNativeCommands.js +269 -0
- package/dist/cli/electronCommands.js +150 -0
- package/dist/cli/evmCommands.js +33 -0
- package/dist/cli/firmwareCommands.js +61 -0
- package/dist/cli/goCommands.js +21 -0
- package/dist/cli/interactiveSetup.js +236 -0
- package/dist/cli/javascriptApplicationAnalysis.js +34 -0
- package/dist/cli/javascriptRecoveryCommands.js +59 -0
- package/dist/cli/jebCommands.js +99 -0
- package/dist/cli/jsonOutput.js +46 -0
- package/dist/cli/managedCommands.js +129 -0
- package/dist/cli/managedProjectGraphCommand.js +24 -0
- package/dist/cli/nativeCallCommands.js +33 -0
- package/dist/cli/omittableDefaults.js +50 -0
- package/dist/cli/options.js +33 -0
- package/dist/cli/processCommands.js +25 -0
- package/dist/cli/referenceSourceImportStatus.js +22 -0
- package/dist/cli/setupCommands.js +189 -0
- package/dist/cli/streamedJsonOutput.js +134 -0
- package/dist/cli/types.js +1 -0
- package/dist/cli/utilityCommands.js +226 -0
- package/dist/cli/wasmCommands.js +44 -0
- package/dist/cli/webModuleCommands.js +60 -0
- package/dist/cli/webNetworkCaptureCommands.js +40 -0
- package/dist/cli/webRuntimeCommands.js +60 -0
- package/dist/cli/webScriptCommands.js +50 -0
- package/dist/cli/webSourceLocationCommands.js +54 -0
- package/dist/cli-runtime/AnalysisProvider-CeyX2u-b.js +25 -0
- package/dist/cli-runtime/AnalysisSnapshotFiles-BuK_ymw5.js +523 -0
- package/dist/cli-runtime/ArtifactReader-BXkffc1D.js +55 -0
- package/dist/cli-runtime/ArtifactResourceScope-CZqLEfbb.js +108 -0
- package/dist/cli-runtime/AsarHeader-CnzOzYEH.js +31 -0
- package/dist/cli-runtime/BinaryTargetResolver-CKRfFhLj.js +965 -0
- package/dist/cli-runtime/BoundedFileBytes-BU30odTm.js +39 -0
- package/dist/cli-runtime/ClientConfigPath-c6jr6INc.js +36 -0
- package/dist/cli-runtime/ClientConfigurationDocument-D0ZqgTCv.js +1522 -0
- package/dist/cli-runtime/ClientRegistrationStatus-DGpwJ4ry.js +422 -0
- package/dist/cli-runtime/DirectAnalysis-DW3MvxW0.js +500 -0
- package/dist/cli-runtime/Doctor-CzwYS9nB.js +862 -0
- package/dist/cli-runtime/ElectronFileScope-C1hUEp36.js +1419 -0
- package/dist/cli-runtime/ExecFileOutput-Czbj-HpV.js +106 -0
- package/dist/cli-runtime/IdaConfiguration-rEjpuRQ1.js +854 -0
- package/dist/cli-runtime/InterfaceBuilderDecodeBudget-DT74BY9z.js +225 -0
- package/dist/cli-runtime/InventoryProjectionEvidence-Dt4Og45O.js +49 -0
- package/dist/cli-runtime/InvestigationProviders-D-QCy-4c.js +117 -0
- package/dist/cli-runtime/JavaScriptApplicationEvidenceGraph-CODAjVru.js +160 -0
- package/dist/cli-runtime/JavaScriptApplicationWorkflowEvidence-CCtwSg8r.js +75 -0
- package/dist/cli-runtime/JavaScriptWorkerMemoryLimit-CJeBSMPx.js +83 -0
- package/dist/cli-runtime/JsonFiles-Ce_O5NcH.js +708 -0
- package/dist/cli-runtime/ManagedSnapshot-DthWfmy9.js +3622 -0
- package/dist/cli-runtime/OwnedCommand-CnK8-h3N.js +106 -0
- package/dist/cli-runtime/PrivateRuntimeRoot-KNg6qLwo.js +237 -0
- package/dist/cli-runtime/ProcessOwnership-AOJaszxt.js +1310 -0
- package/dist/cli-runtime/ProviderDeadline-BSbNOmuW.js +89 -0
- package/dist/cli-runtime/RegularFile-CL6meBxi.js +114 -0
- package/dist/cli-runtime/RegularFileRead-BMh5FMXd.js +115 -0
- package/dist/cli-runtime/SafeOutputTree-D8z2Zrnu.js +512 -0
- package/dist/cli-runtime/SetupHost-CzzRF89z.js +842 -0
- package/dist/cli-runtime/SupportedClients-BrZ2qZVg.js +671 -0
- package/dist/cli-runtime/UninstallFailure-1blyKXHE.js +22 -0
- package/dist/cli-runtime/Update-DF55X_N2.js +143 -0
- package/dist/cli-runtime/UpdateFailure-BcFNxEZZ.js +24 -0
- package/dist/cli-runtime/WindowsBatchCommand-5gT-d7O4.js +45 -0
- package/dist/cli-runtime/ZipArtifactReader-Db65WuM_.js +380 -0
- package/dist/cli-runtime/analysisErrorCleanup-DaUQNiQd.js +32 -0
- package/dist/cli-runtime/analysisErrorPresentation-DZrKL8kS.js +331 -0
- package/dist/cli-runtime/application__DirectAnalysisStatus-OZFIFjZr.js +93 -0
- package/dist/cli-runtime/application__EnhancedTools-C__HAdqG.js +1728 -0
- package/dist/cli-runtime/application__FunctionAnalysisEvidence-fWSgvV74.js +41 -0
- package/dist/cli-runtime/application__ReconstructionCoverageService-DlNt-4TY.js +32 -0
- package/dist/cli-runtime/application__ReconstructionObligationLedgerService-CEpbUv-7.js +813 -0
- package/dist/cli-runtime/application__Setup-BExVGpqG.js +540 -0
- package/dist/cli-runtime/application__Uninstall-BVgWDCPN.js +349 -0
- package/dist/cli-runtime/application__UpdateRuntime-Dj6UIhHQ.js +358 -0
- package/dist/cli-runtime/application__android__AndroidApplicationService-CyynwW6Z.js +31 -0
- package/dist/cli-runtime/application__apple__AppleApplicationService-BNPcWeL8.js +31 -0
- package/dist/cli-runtime/application__harmony__HarmonyApplicationService-W66PwMvx.js +31 -0
- package/dist/cli-runtime/application__javascript__ElectronActiveObservationService-D8VbeCxz.js +85 -0
- package/dist/cli-runtime/application__javascript__ElectronObservationService-FmXFG4f2.js +63 -0
- package/dist/cli-runtime/application__javascript__JavaScriptApplicationService-D-dVrmAY.js +10467 -0
- package/dist/cli-runtime/application__javascript__JavaScriptApplicationWorkflowService-Cb0jmh8J.js +2284 -0
- package/dist/cli-runtime/application__javascript__JavaScriptRuntimeReconciliationService-D55gO7Gq.js +88 -0
- package/dist/cli-runtime/application__javascript__JavaScriptSemanticTraceService-DivM-Ym-.js +298 -0
- package/dist/cli-runtime/artifactOperationError-Wd0PRLIZ.js +27 -0
- package/dist/cli-runtime/artifacts__ArtifactProvider-B_4h3RAw.js +2091 -0
- package/dist/cli-runtime/binary-9Gt3vJ1P.js +12990 -0
- package/dist/cli-runtime/browserObservationError-D73SM55P.js +40 -0
- package/dist/cli-runtime/browserScenario-CTNr5ISp.js +5543 -0
- package/dist/cli-runtime/catalogIdentity-EYVhBUYJ.js +339 -0
- package/dist/cli-runtime/cli.js +28528 -0
- package/dist/cli-runtime/cliOutput-CoDmWVu5.js +98 -0
- package/dist/cli-runtime/cliOutput.js +5 -0
- package/dist/cli-runtime/composition__browserScenario-DNr3A_BM.js +2318 -0
- package/dist/cli-runtime/composition__electronObservation-DNw1f38M.js +550 -0
- package/dist/cli-runtime/composition__electronScenario-Cu7PX270.js +586 -0
- package/dist/cli-runtime/configurationErrors-ByuF6gMR.js +49 -0
- package/dist/cli-runtime/doctorRuntime-D5y43lEp.js +162 -0
- package/dist/cli-runtime/dosMz-pwwUuxyC.js +65 -0
- package/dist/cli-runtime/dotnet__ManagedStaticProvider-BSnWggeb.js +5 -0
- package/dist/cli-runtime/enhancedInputs-K8C_o3b4.js +56 -0
- package/dist/cli-runtime/javascriptApplicationGraph-DUWeec4O.js +940 -0
- package/dist/cli-runtime/javascriptExportReturnShapeProjection-BVbnAdOd.js +78 -0
- package/dist/cli-runtime/javascriptExportShapeComparisonSchemas-BzSil7ft.js +1153 -0
- package/dist/cli-runtime/javascriptRuntimeObservation-9xTNoKY2.js +1215 -0
- package/dist/cli-runtime/javascriptRuntimeReconciliation-CneBtMvx.js +1437 -0
- package/dist/cli-runtime/javascriptRuntimeReconciliationSchemas-D1Mrb_Y0.js +245 -0
- package/dist/cli-runtime/javascriptSemanticTraceSchemas-BHItrqIA.js +126 -0
- package/dist/cli-runtime/lipo-BCA3wVyN.js +365 -0
- package/dist/cli-runtime/logger-CKq3JfbZ.js +34 -0
- package/dist/cli-runtime/machoContainer-DxxkB2b0.js +52 -0
- package/dist/cli-runtime/managedApplicationGraph-BqOr01E6.js +1116 -0
- package/dist/cli-runtime/managedToolContracts-BSy4TRaK.js +80 -0
- package/dist/cli-runtime/mcpDoctor.js +342 -0
- package/dist/cli-runtime/mcpStartupPolicy-Bb7TMLzn.js +18 -0
- package/dist/cli-runtime/native__NativeMacOSProvider-BIG9iCcj.js +4415 -0
- package/dist/cli-runtime/plistValue-KM-SqiXe.js +47 -0
- package/dist/cli-runtime/propertyListKeys-DejfMb-U.js +86 -0
- package/dist/cli-runtime/providerAdapterError-SRSE_gzN.js +27 -0
- package/dist/cli-runtime/providerCleanupError-Do66qCEp.js +27 -0
- package/dist/cli-runtime/providerIdentities-Ao1XTvwx.js +31 -0
- package/dist/cli-runtime/providerOperationHealth-DSTcYPJe.js +577 -0
- package/dist/cli-runtime/providerStartupTimeout-Be8B1Ro8.js +16 -0
- package/dist/cli-runtime/readFileHandleChunks-dp60iZ6v.js +38 -0
- package/dist/cli-runtime/reconstructionObligationLedgerSchemas-dvp6PEnZ.js +15839 -0
- package/dist/cli-runtime/rolldown-runtime-DXoylpqc.js +121 -0
- package/dist/cli-runtime/runtimeVersion-CMGd0bDu.js +23 -0
- package/dist/cli-runtime/safeJson-DKKACtdy.js +25 -0
- package/dist/cli-runtime/scanCanonical-Bi6si9nb.js +2773 -0
- package/dist/cli-runtime/snapshotEnvironment-B5Ai0mha.js +678 -0
- package/dist/cli-runtime/streamedJsonOutput-VYlQZsM7.js +654 -0
- package/dist/cli-runtime/streamedJsonOutput.js +5 -0
- package/dist/cli-runtime/toolContracts-C7pvYKxF.js +4516 -0
- package/dist/cli-runtime/toolEffects-DW31yTSx.js +7004 -0
- package/dist/cli-runtime/workflowInputError-26EGiDpx.js +26 -0
- package/dist/cli.js +91 -0
- package/dist/cliBrowserContext.js +11 -0
- package/dist/cliBrowserScenarioCommands.js +73 -0
- package/dist/cliCommandNames.js +205 -0
- package/dist/cliEvidenceCommands.js +51 -0
- package/dist/cliJavaScriptRuntimeCommands.js +69 -0
- package/dist/cliJsonInput.js +129 -0
- package/dist/cliLogging.js +48 -0
- package/dist/cliObservationOptions.js +73 -0
- package/dist/cliOutput.js +97 -0
- package/dist/composition/adb.js +3 -0
- package/dist/composition/android.js +3 -0
- package/dist/composition/apktool.js +3 -0
- package/dist/composition/auxiliaryAnalysisProviders.js +35 -0
- package/dist/composition/binary.js +25 -0
- package/dist/composition/binaryDiagnostics.js +12 -0
- package/dist/composition/browserObservation.js +3 -0
- package/dist/composition/browserScenario.js +4 -0
- package/dist/composition/directAnalysis.js +44 -0
- package/dist/composition/electronObservation.js +3 -0
- package/dist/composition/electronScenario.js +3 -0
- package/dist/composition/evm.js +4 -0
- package/dist/composition/firmware.js +3 -0
- package/dist/composition/go.js +4 -0
- package/dist/composition/javascriptAnalysisWorkerProcess.js +48 -0
- package/dist/composition/javascriptRecovery.js +3 -0
- package/dist/composition/javascriptRuntimeObservation.js +3 -0
- package/dist/composition/jeb.js +6 -0
- package/dist/composition/optionalObservationProviders.js +54 -0
- package/dist/composition/wasm.js +4 -0
- package/dist/composition/webModules.js +5 -0
- package/dist/composition/webNetworkCaptures.js +6 -0
- package/dist/composition/webRuntime.js +4 -0
- package/dist/composition/webSourceLocations.js +5 -0
- package/dist/config/environment.js +73 -0
- package/dist/config/ghidraDisabledAnalyzers.js +25 -0
- package/dist/config/ghidraLanguageOverride.js +9 -0
- package/dist/config/homeDirectory.js +12 -0
- package/dist/config/mcpInputSchemaProfile.js +27 -0
- package/dist/config/mcpResponseBudget.js +30 -0
- package/dist/config/parseConfig.js +93 -0
- package/dist/config/parsers.js +30 -0
- package/dist/config/providerStartupTimeout.js +13 -0
- package/dist/config/types.js +1 -0
- package/dist/contracts/adb/adbToolContracts.js +353 -0
- package/dist/contracts/advertisedInputExamples.js +48 -0
- package/dist/contracts/analysisDetail.js +13 -0
- package/dist/contracts/analysisSearchContract.js +14 -0
- package/dist/contracts/analysisViewApiSurfaceExample.js +68 -0
- package/dist/contracts/analysisViewToolContracts.js +76 -0
- package/dist/contracts/android/androidToolContracts.js +77 -0
- package/dist/contracts/apktool/apktoolToolContracts.js +33 -0
- package/dist/contracts/applicationToolContracts.js +261 -0
- package/dist/contracts/artifactComparisonExample.js +86 -0
- package/dist/contracts/artifactToolContracts.js +68 -0
- package/dist/contracts/browserProviderToolContracts.js +7 -0
- package/dist/contracts/browserScenarioToolContracts.js +32 -0
- package/dist/contracts/browserToolContracts.js +256 -0
- package/dist/contracts/compactInputSchema.js +256 -0
- package/dist/contracts/enhancedInputs.js +74 -0
- package/dist/contracts/enhancedToolContracts.js +32 -0
- package/dist/contracts/errorSchemas.js +87 -0
- package/dist/contracts/evidenceInputContracts.js +13 -0
- package/dist/contracts/evm/evmToolContracts.js +20 -0
- package/dist/contracts/firmware/firmwareToolContracts.js +38 -0
- package/dist/contracts/functionComparisonExample.js +51 -0
- package/dist/contracts/functionInstructionContract.js +6 -0
- package/dist/contracts/functionWorkflowToolContracts.js +29 -0
- package/dist/contracts/go/goToolContracts.js +20 -0
- package/dist/contracts/hopperMemoryContracts.js +19 -0
- package/dist/contracts/inputSchemaPresentation.js +181 -0
- package/dist/contracts/investigationExamples.js +116 -0
- package/dist/contracts/javascript/applicationWorkflowInputContracts.js +52 -0
- package/dist/contracts/javascript/electronToolContracts.js +118 -0
- package/dist/contracts/javascript/javascriptApplicationWorkflowExamples.js +85 -0
- package/dist/contracts/javascript/javascriptExportShapeComparisonExample.js +248 -0
- package/dist/contracts/javascript/javascriptRecoveryToolContracts.js +35 -0
- package/dist/contracts/javascript/javascriptRuntimeObservationToolContracts.js +40 -0
- package/dist/contracts/javascript/javascriptRuntimeReconciliationExample.js +242 -0
- package/dist/contracts/jeb/jebToolContracts.js +64 -0
- package/dist/contracts/managed/managedToolContracts.js +87 -0
- package/dist/contracts/managed/managedWorkflowExamples.js +281 -0
- package/dist/contracts/managed/managedWorkflowToolContracts.js +165 -0
- package/dist/contracts/mobileApplicationGraphExamples.js +117 -0
- package/dist/contracts/native/binaryDiagnosticsToolContracts.js +65 -0
- package/dist/contracts/native/nativeToolContracts.js +77 -0
- package/dist/contracts/officialToolContracts.js +69 -0
- package/dist/contracts/promptContracts.js +253 -0
- package/dist/contracts/providerSelection.js +29 -0
- package/dist/contracts/reconstructionReadinessExample.js +438 -0
- package/dist/contracts/sessionLifecycleInputs.js +63 -0
- package/dist/contracts/sessionStatusContract.js +17 -0
- package/dist/contracts/sessionToolContracts.js +61 -0
- package/dist/contracts/sessionToolSchemas.js +51 -0
- package/dist/contracts/toolContractExamples.js +77 -0
- package/dist/contracts/toolContractHelpers.js +22 -0
- package/dist/contracts/toolContractTypes.js +18 -0
- package/dist/contracts/toolContracts.js +60 -0
- package/dist/contracts/toolEffects.js +544 -0
- package/dist/contracts/toolOutputSchemaGroups.js +411 -0
- package/dist/contracts/toolOutputSchemaPrimitives.js +532 -0
- package/dist/contracts/toolSchemaMetadata.js +197 -0
- package/dist/contracts/unknownContractExamples.js +31 -0
- package/dist/contracts/wasm/wasmToolContracts.js +24 -0
- package/dist/contracts/webNetworkCaptureToolContracts.js +24 -0
- package/dist/contracts/webRuntimeToolContracts.js +43 -0
- package/dist/contracts/webScriptToolContracts.js +68 -0
- package/dist/doctorRuntime.js +53 -0
- package/dist/domain/adb/adbDeviceAnalysis.js +583 -0
- package/dist/domain/analysisErrorBase.js +58 -0
- package/dist/domain/analysisErrorCleanup.js +29 -0
- package/dist/domain/analysisErrorCore.js +123 -0
- package/dist/domain/analysisErrorPresentation.js +372 -0
- package/dist/domain/analysisErrorProjection.js +454 -0
- package/dist/domain/analysisProfile.js +50 -0
- package/dist/domain/analysisSnapshot.js +538 -0
- package/dist/domain/analysisView/WebNetworkApiSurfaceAccumulator.js +362 -0
- package/dist/domain/analysisView/analysisView.js +340 -0
- package/dist/domain/analysisView/analysisViewCoverage.js +19 -0
- package/dist/domain/analysisView/binaryLayoutView.js +161 -0
- package/dist/domain/analysisView/javascriptApplicationView.js +245 -0
- package/dist/domain/analysisView/nativeFunctionView.js +155 -0
- package/dist/domain/analysisView/webNetworkApiSurfaceView.js +108 -0
- package/dist/domain/android/androidAnalysis.js +143 -0
- package/dist/domain/android/androidApplication.js +144 -0
- package/dist/domain/android/androidPartialObservation.js +36 -0
- package/dist/domain/apktool/apktoolResourceAnalysis.js +75 -0
- package/dist/domain/apple/appleApplication.js +315 -0
- package/dist/domain/apple/appleAssetCatalog.js +127 -0
- package/dist/domain/apple/appleBundleAnatomy.js +303 -0
- package/dist/domain/apple/dyldEnvironment.js +73 -0
- package/dist/domain/apple/dyldPaths.js +89 -0
- package/dist/domain/apple/dylibResolution.js +485 -0
- package/dist/domain/apple/dylibResolutionFindings.js +77 -0
- package/dist/domain/apple/interfaceBuilderGraph.js +403 -0
- package/dist/domain/apple/interfaceBuilderKeyedArchive.js +430 -0
- package/dist/domain/apple/keyedArchive.js +214 -0
- package/dist/domain/apple/machoContainer.js +54 -0
- package/dist/domain/apple/plistNumbers.js +76 -0
- package/dist/domain/apple/plistValue.js +35 -0
- package/dist/domain/artifactComparison.js +348 -0
- package/dist/domain/artifactGraph.js +213 -0
- package/dist/domain/artifactIdentity.js +57 -0
- package/dist/domain/artifactInspection.js +279 -0
- package/dist/domain/artifactIntegrityPolicy.js +10 -0
- package/dist/domain/artifactInventoryEvidence.js +166 -0
- package/dist/domain/artifactInventorySnapshot.js +1 -0
- package/dist/domain/artifactOperationError.js +20 -0
- package/dist/domain/artifactPartialObservation.js +1 -0
- package/dist/domain/artifactPathSyntax.js +75 -0
- package/dist/domain/binaryTarget.js +233 -0
- package/dist/domain/binaryTargetTypes.js +10 -0
- package/dist/domain/bridgeCandidateProjection.js +71 -0
- package/dist/domain/browserCaptureComparison.js +21 -0
- package/dist/domain/browserCompleteness.js +103 -0
- package/dist/domain/browserNetworkEvidence.js +92 -0
- package/dist/domain/browserObservation.js +187 -0
- package/dist/domain/browserObservationError.js +44 -0
- package/dist/domain/browserObservationErrors.js +1 -0
- package/dist/domain/browserObservationSchemas.js +327 -0
- package/dist/domain/browserScenario.js +61 -0
- package/dist/domain/browserScenarioCapture.js +76 -0
- package/dist/domain/browserScenarioCaptureValues.js +292 -0
- package/dist/domain/browserScenarioDiff.js +266 -0
- package/dist/domain/browserScenarioDiffEvidence.js +73 -0
- package/dist/domain/browserScenarioDiffValues.js +140 -0
- package/dist/domain/browserScenarioNormalization.js +40 -0
- package/dist/domain/browserScenarioValues.js +268 -0
- package/dist/domain/browserSession.js +55 -0
- package/dist/domain/bundleComparison.js +243 -0
- package/dist/domain/callPath.js +301 -0
- package/dist/domain/callPathSchemas.js +89 -0
- package/dist/domain/canonicalDigest.js +83 -0
- package/dist/domain/canonicalJsonDigestSteps.js +155 -0
- package/dist/domain/canonicalOrdering.js +3 -0
- package/dist/domain/changedBehavior.js +282 -0
- package/dist/domain/compactStringIdentity.js +9 -0
- package/dist/domain/comparisonSemantics.js +12 -0
- package/dist/domain/comparisonSourceEvidence.js +40 -0
- package/dist/domain/comparisonStatus.js +11 -0
- package/dist/domain/completionLedgerGeneration.js +186 -0
- package/dist/domain/configurationErrors.js +37 -0
- package/dist/domain/conformancePackage.js +200 -0
- package/dist/domain/conformanceReplay.js +132 -0
- package/dist/domain/conformanceTrustGate.js +319 -0
- package/dist/domain/digests.js +27 -0
- package/dist/domain/dosCom.js +8 -0
- package/dist/domain/dosMz.js +83 -0
- package/dist/domain/emptyArraySchema.js +3 -0
- package/dist/domain/evidence.js +305 -0
- package/dist/domain/evidenceBundle.js +413 -0
- package/dist/domain/evidenceCompletionLedger.js +113 -0
- package/dist/domain/evidenceErrors.js +46 -0
- package/dist/domain/evidenceRecordSummary.js +144 -0
- package/dist/domain/evm/evmInterface.js +61 -0
- package/dist/domain/explicitSensitiveFailure.js +108 -0
- package/dist/domain/explicitSensitiveValues.js +10 -0
- package/dist/domain/firmware/firmwareAnalysis.js +128 -0
- package/dist/domain/functionComparison.js +38 -0
- package/dist/domain/functionComparisonDimensions.js +199 -0
- package/dist/domain/functionComparisonNormalization.js +150 -0
- package/dist/domain/functionComparisonResults.js +54 -0
- package/dist/domain/functionComparisonSchemas.js +88 -0
- package/dist/domain/functionDossierEvidence.js +20 -0
- package/dist/domain/go/goBinary.js +96 -0
- package/dist/domain/harmony/harmonyApplication.js +169 -0
- package/dist/domain/hopperErrors.js +98 -0
- package/dist/domain/hopperStartupFailure.js +64 -0
- package/dist/domain/hopperValues.js +368 -0
- package/dist/domain/immutableJson.js +114 -0
- package/dist/domain/inputIssueProjection.js +94 -0
- package/dist/domain/javascript/electronActiveObservation.js +237 -0
- package/dist/domain/javascript/electronObservation.js +122 -0
- package/dist/domain/javascript/electronStaticAnalysis.js +9 -0
- package/dist/domain/javascript/electronStaticAnalysisBrowser.js +187 -0
- package/dist/domain/javascript/electronStaticAnalysisIpc.js +197 -0
- package/dist/domain/javascript/electronStaticAnalysisNative.js +199 -0
- package/dist/domain/javascript/electronStaticAnalysisTypes.js +1 -0
- package/dist/domain/javascript/electronStaticAnalysisValues.js +134 -0
- package/dist/domain/javascript/electronWrappedCallPaths.js +399 -0
- package/dist/domain/javascript/htmlArtifactReferences.js +40 -0
- package/dist/domain/javascript/javascriptAnalysisResourceControls.js +65 -0
- package/dist/domain/javascript/javascriptApplicationAnalysis.js +146 -0
- package/dist/domain/javascript/javascriptApplicationChangeGraph.js +175 -0
- package/dist/domain/javascript/javascriptApplicationEvidenceSchemas.js +400 -0
- package/dist/domain/javascript/javascriptApplicationGraph.js +378 -0
- package/dist/domain/javascript/javascriptApplicationGraphSchemas.js +126 -0
- package/dist/domain/javascript/javascriptApplicationProjectionResources.js +43 -0
- package/dist/domain/javascript/javascriptApplicationVersionComparison.js +104 -0
- package/dist/domain/javascript/javascriptApplicationVersionComparisonSchemas.js +211 -0
- package/dist/domain/javascript/javascriptApplicationVersionItems.js +324 -0
- package/dist/domain/javascript/javascriptApplicationVersionKeys.js +199 -0
- package/dist/domain/javascript/javascriptArtifactFiles.js +1 -0
- package/dist/domain/javascript/javascriptAstFingerprint.js +153 -0
- package/dist/domain/javascript/javascriptAstValues.js +99 -0
- package/dist/domain/javascript/javascriptBootstrap.js +94 -0
- package/dist/domain/javascript/javascriptElectronMemberWrites.js +119 -0
- package/dist/domain/javascript/javascriptExportReturnShapeProjection.js +81 -0
- package/dist/domain/javascript/javascriptExportShapeComparison.js +161 -0
- package/dist/domain/javascript/javascriptExportShapeComparisonIdentity.js +16 -0
- package/dist/domain/javascript/javascriptExportShapeComparisonSchemas.js +302 -0
- package/dist/domain/javascript/javascriptExportShapeSelection.js +130 -0
- package/dist/domain/javascript/javascriptExportShapeVariants.js +333 -0
- package/dist/domain/javascript/javascriptFeatureSeed.js +193 -0
- package/dist/domain/javascript/javascriptFeatureTrace.js +177 -0
- package/dist/domain/javascript/javascriptFeatureTraceSchemas.js +131 -0
- package/dist/domain/javascript/javascriptFeatureTraversal.js +61 -0
- package/dist/domain/javascript/javascriptIntrinsicInvocation.js +93 -0
- package/dist/domain/javascript/javascriptModuleInterop.js +617 -0
- package/dist/domain/javascript/javascriptModuleSemanticIr.js +15 -0
- package/dist/domain/javascript/javascriptNativeHandoff.js +90 -0
- package/dist/domain/javascript/javascriptPackageImportAliases.js +58 -0
- package/dist/domain/javascript/javascriptRecovery.js +90 -0
- package/dist/domain/javascript/javascriptRpcEndpoints.js +253 -0
- package/dist/domain/javascript/javascriptRuntimeLoadState.js +98 -0
- package/dist/domain/javascript/javascriptRuntimeObservation.js +136 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliation.js +46 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationActive.js +74 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationCaptureParsing.js +212 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationGraph.js +163 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationInputValidation.js +28 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationMatching.js +270 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationParsing.js +39 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationResult.js +126 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationRuntime.js +334 -0
- package/dist/domain/javascript/javascriptRuntimeReconciliationSchemas.js +234 -0
- package/dist/domain/javascript/javascriptRuntimeStaticCandidates.js +206 -0
- package/dist/domain/javascript/javascriptSemanticAnalysis.js +910 -0
- package/dist/domain/javascript/javascriptSemanticAsyncEffects.js +246 -0
- package/dist/domain/javascript/javascriptSemanticCallResolution.js +127 -0
- package/dist/domain/javascript/javascriptSemanticCallableResults.js +42 -0
- package/dist/domain/javascript/javascriptSemanticCalls.js +272 -0
- package/dist/domain/javascript/javascriptSemanticChildProcesses.js +224 -0
- package/dist/domain/javascript/javascriptSemanticCoverage.js +32 -0
- package/dist/domain/javascript/javascriptSemanticDataEffectHelpers.js +182 -0
- package/dist/domain/javascript/javascriptSemanticDataEffects.js +299 -0
- package/dist/domain/javascript/javascriptSemanticDerivedAnalysis.js +52 -0
- package/dist/domain/javascript/javascriptSemanticFileProjection.js +1 -0
- package/dist/domain/javascript/javascriptSemanticFingerprints.js +187 -0
- package/dist/domain/javascript/javascriptSemanticGraph.js +575 -0
- package/dist/domain/javascript/javascriptSemanticGraphSchemas.js +316 -0
- package/dist/domain/javascript/javascriptSemanticGraphSerialization.js +12 -0
- package/dist/domain/javascript/javascriptSemanticIr.js +31 -0
- package/dist/domain/javascript/javascriptSemanticIterationSources.js +139 -0
- package/dist/domain/javascript/javascriptSemanticMemberMutations.js +865 -0
- package/dist/domain/javascript/javascriptSemanticMutationInitializers.js +190 -0
- package/dist/domain/javascript/javascriptSemanticMutationValues.js +104 -0
- package/dist/domain/javascript/javascriptSemanticObjectReferences.js +381 -0
- package/dist/domain/javascript/javascriptSemanticObjects.js +164 -0
- package/dist/domain/javascript/javascriptSemanticPrimitives.js +38 -0
- package/dist/domain/javascript/javascriptSemanticProjection.js +571 -0
- package/dist/domain/javascript/javascriptSemanticPromises.js +321 -0
- package/dist/domain/javascript/javascriptSemanticPropertyPaths.js +100 -0
- package/dist/domain/javascript/javascriptSemanticProvenance.js +29 -0
- package/dist/domain/javascript/javascriptSemanticQuery.js +175 -0
- package/dist/domain/javascript/javascriptSemanticQueryAssessment.js +45 -0
- package/dist/domain/javascript/javascriptSemanticQueryIdentity.js +63 -0
- package/dist/domain/javascript/javascriptSemanticQueryRelations.js +15 -0
- package/dist/domain/javascript/javascriptSemanticQuerySchemas.js +95 -0
- package/dist/domain/javascript/javascriptSemanticRequireOrigin.js +34 -0
- package/dist/domain/javascript/javascriptSemanticResourceLimits.js +77 -0
- package/dist/domain/javascript/javascriptSemanticResources.js +129 -0
- package/dist/domain/javascript/javascriptSemanticReturnedReferences.js +219 -0
- package/dist/domain/javascript/javascriptSemanticReturns.js +159 -0
- package/dist/domain/javascript/javascriptSemanticSlots.js +72 -0
- package/dist/domain/javascript/javascriptSemanticState.js +116 -0
- package/dist/domain/javascript/javascriptSemanticTraceSchemas.js +15 -0
- package/dist/domain/javascript/javascriptSemanticTraversal.js +80 -0
- package/dist/domain/javascript/javascriptSemanticValueTypes.js +1 -0
- package/dist/domain/javascript/javascriptSemanticValues.js +581 -0
- package/dist/domain/javascript/javascriptSourceAnalysis.js +1 -0
- package/dist/domain/javascript/javascriptSourceMapPaths.js +114 -0
- package/dist/domain/javascript/javascriptSourceParser.js +50 -0
- package/dist/domain/javascript/javascriptSourceSelection.js +11 -0
- package/dist/domain/javascript/javascriptStaticAnalysis.js +142 -0
- package/dist/domain/javascript/javascriptStaticAnalysisBundler.js +239 -0
- package/dist/domain/javascript/javascriptStaticAnalysisCalls.js +271 -0
- package/dist/domain/javascript/javascriptStaticAnalysisFindings.js +86 -0
- package/dist/domain/javascript/javascriptStaticAnalysisHelpers.js +561 -0
- package/dist/domain/javascript/javascriptStaticAnalysisState.js +21 -0
- package/dist/domain/javascript/javascriptStaticAnalysisTypes.js +2 -0
- package/dist/domain/javascript/javascriptSymbolicBindings.js +795 -0
- package/dist/domain/javascript/javascriptSymbolicControlFlow.js +40 -0
- package/dist/domain/javascript/javascriptSymbolicValues.js +34 -0
- package/dist/domain/javascript/sourceToBundleComparison.js +261 -0
- package/dist/domain/javascript/sourceToBundleComparisonSchemas.js +109 -0
- package/dist/domain/javascript/sourceToBundleSignals.js +231 -0
- package/dist/domain/jeb/jebAnalysis.js +114 -0
- package/dist/domain/jsonSerialization.js +163 -0
- package/dist/domain/jsonShape.js +141 -0
- package/dist/domain/jsonValue.js +96 -0
- package/dist/domain/localPath.js +24 -0
- package/dist/domain/managed/managedApplicationGraph.js +221 -0
- package/dist/domain/managed/managedApplicationGraphCoverage.js +48 -0
- package/dist/domain/managed/managedApplicationGraphNodes.js +367 -0
- package/dist/domain/managed/managedArtifact.js +465 -0
- package/dist/domain/managed/managedInspectionEvidence.js +28 -0
- package/dist/domain/managed/managedMemberComparison.js +211 -0
- package/dist/domain/managed/managedMemberComparisonCoverage.js +71 -0
- package/dist/domain/managed/managedMemberComparisonItems.js +304 -0
- package/dist/domain/managed/managedMemberComparisonMatch.js +204 -0
- package/dist/domain/managed/managedNativeVerification.js +35 -0
- package/dist/domain/managed/managedNativeVerificationMatch.js +276 -0
- package/dist/domain/managed/managedNativeVerificationSchemas.js +180 -0
- package/dist/domain/managed/managedReconstruction.js +190 -0
- package/dist/domain/mobileApplicationGraphProjection.js +61 -0
- package/dist/domain/native/binaryLayout.js +354 -0
- package/dist/domain/native/fileOffsetPartialObservation.js +1 -0
- package/dist/domain/native/nativeAotPe.js +1408 -0
- package/dist/domain/native/nativeApiBoundary.js +140 -0
- package/dist/domain/native/nativeCallObservation.js +186 -0
- package/dist/domain/native/nativeCallPartialObservation.js +33 -0
- package/dist/domain/native/nativeDataType.js +53 -0
- package/dist/domain/native/nativeFunctionAnnotations.js +43 -0
- package/dist/domain/native/nativeInspection.js +174 -0
- package/dist/domain/native/nativeInstruction.js +125 -0
- package/dist/domain/native/nativeInvestigationGraph.js +364 -0
- package/dist/domain/native/nativeLoadImage.js +112 -0
- package/dist/domain/native/nativeMetadataRecovery.js +128 -0
- package/dist/domain/native/nativeUiObservation.js +137 -0
- package/dist/domain/native/nativeValueFlow.js +72 -0
- package/dist/domain/native/nativeValueTrace.js +64 -0
- package/dist/domain/native/objcSwiftMetadata.js +419 -0
- package/dist/domain/native/peResources.js +100 -0
- package/dist/domain/native/recordedCrash.js +263 -0
- package/dist/domain/native/recordedCrashNoteCoverage.js +73 -0
- package/dist/domain/nativeConvention.js +33 -0
- package/dist/domain/offsetDateTime.js +17 -0
- package/dist/domain/peMachine.js +36 -0
- package/dist/domain/process/processCapture.js +412 -0
- package/dist/domain/process/processCaptureCoverage.js +70 -0
- package/dist/domain/process/processCaptureExample.js +132 -0
- package/dist/domain/process/processCaptureParsing.js +21 -0
- package/dist/domain/process/processCaptureValidation.js +246 -0
- package/dist/domain/process/processComparison.js +315 -0
- package/dist/domain/process/processEvidenceProvider.js +11 -0
- package/dist/domain/process/processObservation.js +140 -0
- package/dist/domain/process/processScenario.js +247 -0
- package/dist/domain/process/processTraceComparison.js +34 -0
- package/dist/domain/process/processTraceDimensionProjection.js +35 -0
- package/dist/domain/process/processTraceEvaluation.js +320 -0
- package/dist/domain/process/processTraceSpecification.js +382 -0
- package/dist/domain/propertyListKeys.js +107 -0
- package/dist/domain/propertyListXmlText.js +19 -0
- package/dist/domain/providerAdapterError.js +19 -0
- package/dist/domain/providerCleanupError.js +18 -0
- package/dist/domain/providerConfigurationRefusal.js +12 -0
- package/dist/domain/providerOperationHealth.js +54 -0
- package/dist/domain/providerSelectionError.js +46 -0
- package/dist/domain/rawBinary.js +93 -0
- package/dist/domain/reconstructionCoverage.js +325 -0
- package/dist/domain/reconstructionCoverageEvaluation.js +234 -0
- package/dist/domain/reconstructionCoverageInput.js +7 -0
- package/dist/domain/reconstructionObligationLedgerIntegrity.js +114 -0
- package/dist/domain/reconstructionObligationLedgerSchemas.js +347 -0
- package/dist/domain/reconstructionReadiness.js +116 -0
- package/dist/domain/reconstructionReadinessFindingHelpers.js +17 -0
- package/dist/domain/reconstructionReadinessIntegrityFindings.js +118 -0
- package/dist/domain/reconstructionReadinessJourneyFindings.js +193 -0
- package/dist/domain/reconstructionReadinessSchemas.js +268 -0
- package/dist/domain/reconstructionUnknowns.js +91 -0
- package/dist/domain/reconstructionVerification.js +218 -0
- package/dist/domain/reconstructionVerificationSchemas.js +141 -0
- package/dist/domain/recordedTransportUrl.js +51 -0
- package/dist/domain/referenceSourceClassification.js +385 -0
- package/dist/domain/referenceSourceGraph.js +380 -0
- package/dist/domain/referenceSourceImportParsing.js +238 -0
- package/dist/domain/referenceSourcePathIdentity.js +22 -0
- package/dist/domain/referenceSourcePolicy.js +1 -0
- package/dist/domain/referenceSourceRequireBindings.js +137 -0
- package/dist/domain/relationshipCoverage.js +20 -0
- package/dist/domain/residualUnknown.js +252 -0
- package/dist/domain/result.js +4 -0
- package/dist/domain/runtimeVersion.js +15 -0
- package/dist/domain/safeJson.js +13 -0
- package/dist/domain/sourceMapContents.js +6 -0
- package/dist/domain/sourceMapEnvelope.js +44 -0
- package/dist/domain/staticRuntimeCorrelation.js +334 -0
- package/dist/domain/stringPatterns.js +6 -0
- package/dist/domain/swiftSymbolClassification.js +66 -0
- package/dist/domain/symbolAnalysis.js +122 -0
- package/dist/domain/unicodeCodePointOrder.js +23 -0
- package/dist/domain/unknownRegistryError.js +10 -0
- package/dist/domain/wasm/wasmArtifact.js +105 -0
- package/dist/domain/webBundleAnalysis.js +192 -0
- package/dist/domain/webBundleAnalyzer.js +15 -0
- package/dist/domain/webBundleAnalyzerAst.js +49 -0
- package/dist/domain/webBundleAnalyzerInspection.js +315 -0
- package/dist/domain/webBundleAnalyzerResult.js +142 -0
- package/dist/domain/webCaptureDiff.js +423 -0
- package/dist/domain/webCaptureDiffSchemas.js +84 -0
- package/dist/domain/webContentArtifact.js +38 -0
- package/dist/domain/webEventListeners.js +29 -0
- package/dist/domain/webExecution.js +75 -0
- package/dist/domain/webInventory.js +62 -0
- package/dist/domain/webMcpDiscovery.js +53 -0
- package/dist/domain/webModuleImports.js +99 -0
- package/dist/domain/webModuleTrace.js +101 -0
- package/dist/domain/webNetworkCapture.js +142 -0
- package/dist/domain/webNetworkCaptureCoordinates.js +58 -0
- package/dist/domain/webRuntime.js +80 -0
- package/dist/domain/webScreenshot.js +132 -0
- package/dist/domain/webScriptArtifacts.js +37 -0
- package/dist/domain/webScriptExport.js +84 -0
- package/dist/domain/webScriptExportError.js +19 -0
- package/dist/domain/webScriptExportPlan.js +104 -0
- package/dist/domain/webSourceLocation.js +118 -0
- package/dist/domain/webSourcePosition.js +21 -0
- package/dist/domain/zipPackageFormat.js +52 -0
- package/dist/domain/zodCollectionSteps.js +24 -0
- package/dist/dotnet/ManagedArtifactInspector.js +308 -0
- package/dist/dotnet/ManagedDecodeBudget.js +138 -0
- package/dist/dotnet/ManagedExceptionRegionValidation.js +41 -0
- package/dist/dotnet/ManagedMemberInspector.js +173 -0
- package/dist/dotnet/ManagedMemberInspectorCore.js +446 -0
- package/dist/dotnet/ManagedMemberInstructionDecoder.js +468 -0
- package/dist/dotnet/ManagedMemberOwnership.js +71 -0
- package/dist/dotnet/ManagedMemberPointers.js +62 -0
- package/dist/dotnet/ManagedMemberRows.js +227 -0
- package/dist/dotnet/ManagedMetadataHeaps.js +179 -0
- package/dist/dotnet/ManagedMetadataInventory.js +99 -0
- package/dist/dotnet/ManagedMetadataInventoryRows.js +295 -0
- package/dist/dotnet/ManagedMetadataLayout.js +270 -0
- package/dist/dotnet/ManagedMetadataRowSizes.js +54 -0
- package/dist/dotnet/ManagedMethodBodyReader.js +155 -0
- package/dist/dotnet/ManagedNativeBoundaryHelpers.js +314 -0
- package/dist/dotnet/ManagedNativeBoundaryInspector.js +128 -0
- package/dist/dotnet/ManagedPeReader.js +233 -0
- package/dist/dotnet/ManagedReaderFailure.js +27 -0
- package/dist/dotnet/ManagedSnapshot.js +88 -0
- package/dist/dotnet/ManagedStaticProvider.js +158 -0
- package/dist/dotnet/ManagedStaticProviderMetadata.js +33 -0
- package/dist/evaluation/AgentEvaluationFixtures.js +250 -0
- package/dist/evaluation/AgentEvaluationReport.js +32 -0
- package/dist/evaluation/CodexAgentEval.js +188 -0
- package/dist/evaluation/KnownAnswerEvaluation.js +323 -0
- package/dist/evm/EvmBytecodeCarrier.js +21 -0
- package/dist/evm/EvmWorkerLimits.js +40 -0
- package/dist/evm/EvmoleFailures.js +124 -0
- package/dist/evm/EvmoleInterfaceAdapter.js +53 -0
- package/dist/evm/EvmoleInterfaceProvider.js +339 -0
- package/dist/evm/EvmoleInterfaceWorker.js +87 -0
- package/dist/evm/EvmoleRelease.js +16 -0
- package/dist/filesystem/OwnedDirectoryHandle.js +29 -0
- package/dist/filesystem/OwnedFileHandle.js +36 -0
- package/dist/filesystem/OwnedStagedOutput.js +138 -0
- package/dist/filesystem/RegularFile.js +73 -0
- package/dist/filesystem/StableFileHash.js +46 -0
- package/dist/filesystem/readFileHandleChunks.js +35 -0
- package/dist/firmware/FirmwareCommand.js +190 -0
- package/dist/firmware/FirmwareFiles.js +206 -0
- package/dist/firmware/FirmwareProvider.js +388 -0
- package/dist/firmware/FirmwarePublication.js +105 -0
- package/dist/firmware/FirmwareRelease.js +33 -0
- package/dist/firmware/FirmwareReports.js +287 -0
- package/dist/firmware/FirmwareVersion.js +80 -0
- package/dist/generatedPackageMetadata.js +9 -0
- package/dist/ghidra/GhidraAnalysisProfile.js +219 -0
- package/dist/ghidra/GhidraAnalysisSeeds.js +211 -0
- package/dist/ghidra/GhidraClient.js +725 -0
- package/dist/ghidra/GhidraClientStartup.js +27 -0
- package/dist/ghidra/GhidraClientTypes.js +1 -0
- package/dist/ghidra/GhidraClientWire.js +38 -0
- package/dist/ghidra/GhidraDiagnostics.js +53 -0
- package/dist/ghidra/GhidraDoctor.js +88 -0
- package/dist/ghidra/GhidraFunctionValues.js +328 -0
- package/dist/ghidra/GhidraInstallation.js +443 -0
- package/dist/ghidra/GhidraInstallationPolicy.js +140 -0
- package/dist/ghidra/GhidraInventoryValues.js +262 -0
- package/dist/ghidra/GhidraJavaLaunch.js +66 -0
- package/dist/ghidra/GhidraLanguageCatalog.js +99 -0
- package/dist/ghidra/GhidraLauncher.js +490 -0
- package/dist/ghidra/GhidraLoadImageAttest.js +103 -0
- package/dist/ghidra/GhidraLoadImageValues.js +260 -0
- package/dist/ghidra/GhidraMipsProfile.js +187 -0
- package/dist/ghidra/GhidraProvider.js +250 -0
- package/dist/ghidra/GhidraProviderCapabilities.js +208 -0
- package/dist/ghidra/GhidraProviderClient.js +613 -0
- package/dist/ghidra/GhidraPspExtension.js +144 -0
- package/dist/ghidra/GhidraPspProfile.js +50 -0
- package/dist/ghidra/GhidraRawBinaryLanguage.js +18 -0
- package/dist/ghidra/GhidraRequestQueue.js +115 -0
- package/dist/ghidra/GhidraResponseBuffer.js +31 -0
- package/dist/ghidra/GhidraResponseRouter.js +24 -0
- package/dist/ghidra/GhidraSessionError.js +180 -0
- package/dist/ghidra/GhidraSessionRoot.js +39 -0
- package/dist/ghidra/GhidraSessionValues.js +86 -0
- package/dist/ghidra/GhidraSocketConnection.js +83 -0
- package/dist/ghidra/GhidraTargetSnapshot.js +79 -0
- package/dist/ghidra/GhidraTransport.js +101 -0
- package/dist/ghidra/extensions/GhidraExtensionFailures.js +20 -0
- package/dist/ghidra/extensions/GhidraExtensions.js +177 -0
- package/dist/ghidra/extensions/nativeaot/NativeAotAdapter.js +27 -0
- package/dist/ghidra/extensions/nativeaot/NativeAotReport.js +100 -0
- package/dist/ghidra/protocol.js +46 -0
- package/dist/go/GoBinaryContainer.js +125 -0
- package/dist/go/GoBinaryImage.js +172 -0
- package/dist/go/GoBinaryProvider.js +137 -0
- package/dist/go/GoElfImage.js +149 -0
- package/dist/go/GoMachoImage.js +113 -0
- package/dist/go/GoModuleText.js +217 -0
- package/dist/go/GoPeImage.js +102 -0
- package/dist/hopper/BridgeLauncher.js +305 -0
- package/dist/hopper/HopperAnalysisProfile.js +168 -0
- package/dist/hopper/HopperCleanup.js +245 -0
- package/dist/hopper/HopperClient.js +767 -0
- package/dist/hopper/HopperDiagnostics.js +14 -0
- package/dist/hopper/HopperFileOffset.js +237 -0
- package/dist/hopper/HopperMachOImage.js +200 -0
- package/dist/hopper/HopperOperationStage.js +6 -0
- package/dist/hopper/HopperProcessDiagnostic.js +26 -0
- package/dist/hopper/HopperProvider.js +269 -0
- package/dist/hopper/HopperProviderCapabilities.js +91 -0
- package/dist/hopper/HopperRegexSearch.js +134 -0
- package/dist/hopper/HopperRegexWorker.js +27 -0
- package/dist/hopper/HopperRequestQueue.js +261 -0
- package/dist/hopper/HopperResponseStream.js +44 -0
- package/dist/hopper/HopperSessionValues.js +30 -0
- package/dist/hopper/HopperSocketConnection.js +31 -0
- package/dist/hopper/HopperTargetLease.js +233 -0
- package/dist/hopper/LinuxPrivateDisplayDiagnostic.js +64 -0
- package/dist/hopper/LinuxPrivateDisplayProbe.js +224 -0
- package/dist/hopper/protocol.js +88 -0
- package/dist/ida/IdaBusyHealth.js +44 -0
- package/dist/ida/IdaCallGraph.js +134 -0
- package/dist/ida/IdaConfiguration.js +61 -0
- package/dist/ida/IdaDoctor.js +53 -0
- package/dist/ida/IdaInput.js +56 -0
- package/dist/ida/IdaMcpConnection.js +115 -0
- package/dist/ida/IdaOperationRunner.js +376 -0
- package/dist/ida/IdaProtocolValues.js +208 -0
- package/dist/ida/IdaProvider.js +136 -0
- package/dist/ida/IdaProviderCapabilities.js +64 -0
- package/dist/ida/IdaSessionClient.js +444 -0
- package/dist/ida/IdaWorkspace.js +55 -0
- package/dist/identity.js +25 -0
- package/dist/inspector/JavaScriptRuntimeScope.js +89 -0
- package/dist/inspector/V8InspectorCaptureProjection.js +197 -0
- package/dist/inspector/V8InspectorEndpoint.js +70 -0
- package/dist/inspector/V8InspectorProvider.js +378 -0
- package/dist/inspector/providerIdentity.js +6 -0
- package/dist/javascript/analysis/JavaScriptAnalysisTransfer.js +337 -0
- package/dist/javascript/analysis/JavaScriptAnalysisWorker.js +574 -0
- package/dist/javascript/analysis/JavaScriptAnalysisWorkerProtocol.js +64 -0
- package/dist/javascript/analysis/JavaScriptAnalysisWorkerSchemas.js +558 -0
- package/dist/javascript/analysis/JavaScriptAnalysisWorkerServer.js +121 -0
- package/dist/javascript/recovery/RecoveryFiles.js +175 -0
- package/dist/javascript/recovery/WakaruCommand.js +137 -0
- package/dist/javascript/recovery/WakaruExecution.js +115 -0
- package/dist/javascript/recovery/WakaruProvider.js +218 -0
- package/dist/javascript/recovery/WakaruPublication.js +126 -0
- package/dist/javascript/recovery/WakaruRelease.js +36 -0
- package/dist/javascript/recovery/WakaruReport.js +140 -0
- package/dist/javascript/recovery/WakaruVersion.js +24 -0
- package/dist/javascript/sourceMaps/DecodedSourceMap.js +47 -0
- package/dist/javascript/sourceMaps/SourceMapCodecProcess.js +37 -0
- package/dist/javascript/sourceMaps/SourceMapCodecProtocol.js +20 -0
- package/dist/javascript/sourceMaps/SourceMapCommand.js +223 -0
- package/dist/javascript/sourceMaps/SourceMapDecoder.js +135 -0
- package/dist/javascript/sourceMaps/SourceMapFormat.js +238 -0
- package/dist/javascript/sourceMaps/TraceSourceMap.js +152 -0
- package/dist/jeb/JebMcpConnection.js +186 -0
- package/dist/jeb/JebMcpEndpoint.js +40 -0
- package/dist/jeb/JebProvider.js +297 -0
- package/dist/logger.js +14 -0
- package/dist/main/messages.js +4 -0
- package/dist/main/shutdown.js +102 -0
- package/dist/main/startup.js +21 -0
- package/dist/main/transport.js +72 -0
- package/dist/main/types.js +1 -0
- package/dist/main.js +92 -0
- package/dist/mcp/AnalysisSnapshotFiles-DbgHi36O.js +1225 -0
- package/dist/mcp/ArtifactProvider-BNxKlaKX.js +2090 -0
- package/dist/mcp/ArtifactProviderMetadata--hy-wyJK.js +76 -0
- package/dist/mcp/ArtifactReader-OyM03Gjn.js +55 -0
- package/dist/mcp/ArtifactResourceScope-CBR5q4aK.js +108 -0
- package/dist/mcp/AsarHeader-WsPgoooH.js +31 -0
- package/dist/mcp/BinaryTargetResolver-DbiUzRLh.js +1073 -0
- package/dist/mcp/BoundedFileBytes-CJPW_TzE.js +68 -0
- package/dist/mcp/CdpConnection-CM0tkVfW.js +557 -0
- package/dist/mcp/CdpOptionalCommand-H8_fL7Q_.js +120 -0
- package/dist/mcp/CdpTargetSession-OYD1d6XM.js +647 -0
- package/dist/mcp/DirectAnalysis-BWAu8Ro5.js +395 -0
- package/dist/mcp/DirectAnalysisStatus-DofNPhKd.js +33 -0
- package/dist/mcp/ElectronFileScope-DEayib6K.js +110 -0
- package/dist/mcp/InterfaceBuilderDecodeBudget-CUrOtfNo.js +401 -0
- package/dist/mcp/ManagedStaticProvider-CXE93Bow.js +4460 -0
- package/dist/mcp/NativeMacOSProvider-BbITFLHW.js +4408 -0
- package/dist/mcp/NativeMacOSProviderMetadata-mxDhaNJf.js +281 -0
- package/dist/mcp/ProcedureAddressResolution-Gnjf9Hya.js +19 -0
- package/dist/mcp/ProcessOwnership-nOFZsmD3.js +1411 -0
- package/dist/mcp/WorkflowEvidence-DJyEy3K0.js +94 -0
- package/dist/mcp/analysisErrorCore-BqyeMw3_.js +201 -0
- package/dist/mcp/analysisErrorProjection-B7pHef2y.js +724 -0
- package/dist/mcp/artifactOperationError-B_jxO8at.js +27 -0
- package/dist/mcp/artifactToolContracts-TXegBBr1.js +159 -0
- package/dist/mcp/browserObservation-BCgaDRyQ.js +4398 -0
- package/dist/mcp/browserObservationError-BKBEX85K.js +40 -0
- package/dist/mcp/browserObservationSchemas-yzRJ90-E.js +573 -0
- package/dist/mcp/browserScenario-z7jveI9P.js +2319 -0
- package/dist/mcp/browserScenarioCapture-BvnKTmtZ.js +460 -0
- package/dist/mcp/canonicalDigest-Bi_0_zGi.js +71 -0
- package/dist/mcp/digests-Dugt3H71.js +199 -0
- package/dist/mcp/electronActiveObservation-lDvQTMR0.js +226 -0
- package/dist/mcp/electronObservation-DjQQYGw4.js +556 -0
- package/dist/mcp/electronObservation-DuhMHCmQ.js +112 -0
- package/dist/mcp/electronScenario-9mLG6h-g.js +586 -0
- package/dist/mcp/emptyArraySchema-DEEefG2V.js +140 -0
- package/dist/mcp/enhancedInputs-CLdEXv88.js +56 -0
- package/dist/mcp/interfaceBuilderGraph-BOKqQzjK.js +2613 -0
- package/dist/mcp/javascriptRuntimeObservation-C_wglsz_.js +661 -0
- package/dist/mcp/javascriptRuntimeObservation-CxQ1UT_y.js +121 -0
- package/dist/mcp/lipo-Do-2eBrl.js +465 -0
- package/dist/mcp/localPath-AxvW9aPe.js +19 -0
- package/dist/mcp/logger-CZ4Hlc6u.js +34 -0
- package/dist/mcp/machoContainer-9En6pSkd.js +813 -0
- package/dist/mcp/main-WQSCuTNt.js +52791 -0
- package/dist/mcp/main.js +6 -0
- package/dist/mcp/managedToolContracts-o5LHFwHc.js +81 -0
- package/dist/mcp/plistValue-DsU7z4yF.js +47 -0
- package/dist/mcp/propertyListKeys-cX-BUv2y.js +197 -0
- package/dist/mcp/providerAdapterError-CdPaQ6-Z.js +27 -0
- package/dist/mcp/providerCleanupError-DvE79aUX.js +49 -0
- package/dist/mcp/providerIdentities--ptAh481.js +31 -0
- package/dist/mcp/providerIdentity-BCQ5n5tw.js +16 -0
- package/dist/mcp/providerOperationHealth-CUeCJZiP.js +212 -0
- package/dist/mcp/rolldown-runtime-BjeaiXFo.js +121 -0
- package/dist/mcp/safeJson-NeGfpkrI.js +25 -0
- package/dist/mcp/scanCanonical-2GN0h-BE.js +3647 -0
- package/dist/mcp/serverIdentity-rOY69sxc.js +633 -0
- package/dist/mcp/sourceMapEnvelope-D8Zezqyi.js +252 -0
- package/dist/mcp/toolContracts-CrfYDTUz.js +14561 -0
- package/dist/mcp/toolOutputSchemaGroups-ChxVLGoy.js +11114 -0
- package/dist/mcp/unicodeCodePointOrder-BezCbTpg.js +26 -0
- package/dist/mcp/webContentArtifact-DUBgMzVO.js +185 -0
- package/dist/mcp/webRuntime-C2Tx-fgS.js +74 -0
- package/dist/mcp/webSourceLocation-Dnkpf0R2.js +8532 -0
- package/dist/mcpDoctor.js +360 -0
- package/dist/mcpStartupPolicy.js +14 -0
- package/dist/native/AppleDispatchCoverage.js +112 -0
- package/dist/native/AppleDispatchDecodeFacts.js +6 -0
- package/dist/native/AppleDispatchMetadata.js +176 -0
- package/dist/native/AppleMachoFixups.js +372 -0
- package/dist/native/AppleMachoSelection.js +234 -0
- package/dist/native/AppleObjcCategories.js +63 -0
- package/dist/native/AppleObjcDispatchFacets.js +260 -0
- package/dist/native/AppleObjcProperties.js +79 -0
- package/dist/native/AppleObjcProtocols.js +89 -0
- package/dist/native/AppleSwiftDispatchFacets.js +156 -0
- package/dist/native/AppleSwiftVtables.js +92 -0
- package/dist/native/CommandRunner.js +240 -0
- package/dist/native/LldbCallTracer.js +713 -0
- package/dist/native/LldbRetainedObservations.js +178 -0
- package/dist/native/NativeCallObservation.js +195 -0
- package/dist/native/NativeMacOSProvider.js +701 -0
- package/dist/native/NativeMacOSProviderMetadata.js +46 -0
- package/dist/native/NativeMachoInspection.js +273 -0
- package/dist/native/NativeUiHelperRuntime.js +66 -0
- package/dist/native/NativeUiObservation.js +183 -0
- package/dist/native/NativeUiOutputBudget.js +8 -0
- package/dist/native/SignatureTargetBinding.js +155 -0
- package/dist/native/parsers/codesign.js +93 -0
- package/dist/native/parsers/demangle.js +30 -0
- package/dist/native/parsers/dyldInfo.js +60 -0
- package/dist/native/parsers/echoedPath.js +14 -0
- package/dist/native/parsers/lipo.js +177 -0
- package/dist/native/parsers/machoUuid.js +150 -0
- package/dist/native/parsers/otool.js +379 -0
- package/dist/native/parsers/plist.js +187 -0
- package/dist/native/pe/PeResourceLayout.js +120 -0
- package/dist/native/pe/PeResourceParser.js +286 -0
- package/dist/native/pe/PeResourcesProvider.js +63 -0
- package/dist/native/pwndbg/PwndbgCoreContext.js +180 -0
- package/dist/native/pwntools/PwntoolsDecoder.js +206 -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/BoundedFileBytes.js +40 -0
- package/dist/process/DarwinProcessRunTokenReader.js +376 -0
- package/dist/process/ExecFileOutput.js +124 -0
- package/dist/process/JavaScriptWorkerMemoryLimit.js +25 -0
- package/dist/process/OwnedCommand.js +131 -0
- package/dist/process/PendingOperations.js +61 -0
- package/dist/process/PrivateRuntimeRoot.js +61 -0
- package/dist/process/ProcessCommandIdentity.js +19 -0
- package/dist/process/ProcessOwnership.js +636 -0
- package/dist/process/ProcessOwnershipIdentity.js +13 -0
- package/dist/process/ProcessOwnershipObservation.js +407 -0
- package/dist/process/ProcessOwnershipProcessTree.js +35 -0
- package/dist/process/ProcessRunTokenObservations.js +48 -0
- package/dist/process/ProviderDeadline.js +91 -0
- package/dist/process/ProviderDiagnosticRedaction.js +17 -0
- package/dist/process/ProviderProcess.js +381 -0
- package/dist/process/ProviderRunLineage.js +21 -0
- package/dist/process/WindowsAuthority.js +51 -0
- package/dist/process/WindowsBatchCommand.js +46 -0
- package/dist/process/boundedUtf8Text.js +13 -0
- package/dist/process/capture/FilesystemSnapshot.js +268 -0
- package/dist/process/capture/ProcessCaptureCapability.js +65 -0
- package/dist/process/capture/ProcessCaptureEnvironment.js +9 -0
- package/dist/process/capture/ProcessCaptureError.js +74 -0
- package/dist/process/capture/ProcessCaptureJournal.js +61 -0
- package/dist/process/capture/ProcessCaptureLifecycle.js +1050 -0
- package/dist/process/capture/ProcessCaptureProgress.js +62 -0
- package/dist/process/capture/ProcessFilesystemEffects.js +81 -0
- package/dist/process/capture/ProcessHarness.js +602 -0
- package/dist/process/capture/ProcessNormalization.js +88 -0
- package/dist/process/capture/ProcessSampling.js +415 -0
- package/dist/process/capture/ProcessScenarioRuntimeValidation.js +79 -0
- package/dist/process/capture/ProcessTimer.js +39 -0
- package/dist/process/capture/TerminalRenderer.js +124 -0
- package/dist/process/snapshotEnvironment.js +14 -0
- package/dist/reference/ReferenceSourceReader.js +73 -0
- package/dist/reference/ReferenceSourceReaderEntries.js +273 -0
- package/dist/reference/ReferenceSourceReaderErrors.js +54 -0
- package/dist/reference/ReferenceSourceReaderFile.js +147 -0
- package/dist/reference/ReferenceSourceReaderPaths.js +8 -0
- package/dist/reference/ReferenceSourceReaderTypes.js +1 -0
- package/dist/reference/ReferenceSourceReaderValidate.js +81 -0
- package/dist/server/EvidenceMcpServer.js +216 -0
- package/dist/server/admittedToolOperation.js +9 -0
- package/dist/server/analysisAdmission.js +8 -0
- package/dist/server/contractToolHandler.js +21 -0
- package/dist/server/createServer.js +344 -0
- package/dist/server/lifecycleProgress.js +10 -0
- package/dist/server/mcpClientMetadata.js +42 -0
- package/dist/server/mcpProgress.js +26 -0
- package/dist/server/promptCompletion.js +141 -0
- package/dist/server/recordDerivedEvidence.js +10 -0
- package/dist/server/registerAdbTools.js +36 -0
- package/dist/server/registerAnalysisViewTool.js +10 -0
- package/dist/server/registerAndroidTools.js +31 -0
- package/dist/server/registerApktoolTools.js +14 -0
- package/dist/server/registerApplicationTools/compareExportShapes.js +29 -0
- package/dist/server/registerApplicationTools/compareSourceToBundle.js +29 -0
- package/dist/server/registerApplicationTools/compareVersions.js +34 -0
- package/dist/server/registerApplicationTools/coverage.js +13 -0
- package/dist/server/registerApplicationTools/helpers.js +37 -0
- package/dist/server/registerApplicationTools/obligationLedger.js +23 -0
- package/dist/server/registerApplicationTools/projectMobileApplicationGraph.js +50 -0
- package/dist/server/registerApplicationTools/traceFeature.js +26 -0
- package/dist/server/registerApplicationTools/traceSemantics.js +25 -0
- package/dist/server/registerApplicationTools/types.js +1 -0
- package/dist/server/registerApplicationTools.js +19 -0
- package/dist/server/registerArtifactComparisonTool.js +71 -0
- package/dist/server/registerArtifactTools.js +14 -0
- package/dist/server/registerBinaryDiagnosticsTools.js +26 -0
- package/dist/server/registerBrowserScenarioTool.js +26 -0
- package/dist/server/registerBrowserTools.js +58 -0
- package/dist/server/registerBundleComparisonTool.js +54 -0
- package/dist/server/registerCloseLifecycleTool.js +55 -0
- package/dist/server/registerElectronTools.js +70 -0
- package/dist/server/registerEnhancedTools.js +169 -0
- package/dist/server/registerEvidenceTools.js +68 -0
- package/dist/server/registerEvmTools.js +9 -0
- package/dist/server/registerFirmwareTools.js +11 -0
- package/dist/server/registerFunctionComparisonTool.js +86 -0
- package/dist/server/registerGoTools.js +9 -0
- package/dist/server/registerInvestigationTools/helpers.js +46 -0
- package/dist/server/registerInvestigationTools/types.js +1 -0
- package/dist/server/registerInvestigationTools.js +168 -0
- package/dist/server/registerJavaScriptRecoveryTool.js +9 -0
- package/dist/server/registerJavaScriptRuntimeObservationTools.js +27 -0
- package/dist/server/registerJebTools.js +16 -0
- package/dist/server/registerManagedTools.js +40 -0
- package/dist/server/registerManagedWorkflowTools/compareManagedMembers.js +53 -0
- package/dist/server/registerManagedWorkflowTools/contract.js +7 -0
- package/dist/server/registerManagedWorkflowTools/evidence.js +27 -0
- package/dist/server/registerManagedWorkflowTools/importManagedReconstruction.js +27 -0
- package/dist/server/registerManagedWorkflowTools/projectManagedApplicationGraph.js +41 -0
- package/dist/server/registerManagedWorkflowTools/types.js +1 -0
- package/dist/server/registerManagedWorkflowTools/verifyManagedNativeBoundaries.js +62 -0
- package/dist/server/registerManagedWorkflowTools.js +11 -0
- package/dist/server/registerOfficialTools.js +74 -0
- package/dist/server/registerPeResourcesTool.js +9 -0
- package/dist/server/registerProcessComparisonTool.js +156 -0
- package/dist/server/registerPrompts.js +73 -0
- package/dist/server/registerRecordedCrashTools.js +9 -0
- package/dist/server/registerSessionRecordTools.js +90 -0
- package/dist/server/registerSessionStatusTool.js +61 -0
- package/dist/server/registerSessionTools.js +217 -0
- package/dist/server/registerWasmTools.js +9 -0
- package/dist/server/registerWebModuleTool.js +9 -0
- package/dist/server/registerWebNetworkCaptureTool.js +20 -0
- package/dist/server/registerWebRuntimeTools.js +27 -0
- package/dist/server/registerWebScriptTool.js +18 -0
- package/dist/server/registerWebSourceLocationTool.js +9 -0
- package/dist/server/runDerivedOperation.js +55 -0
- package/dist/server/sessionAvailabilityPolicy.js +29 -0
- package/dist/server/sessionEvidence.js +11 -0
- package/dist/server/toolLogging.js +11 -0
- package/dist/server/toolRegistrationOptions.js +9 -0
- package/dist/server/toolResult.js +119 -0
- package/dist/server/toolResultEncoding.js +34 -0
- package/dist/serverIdentity.js +69 -0
- package/dist/wasm/WabtArtifactProvider.js +313 -0
- package/dist/wasm/WabtFailures.js +62 -0
- package/dist/wasm/WabtOutput.js +60 -0
- package/dist/wasm/WabtRelease.js +12 -0
- package/dist/wasm/WabtWat.js +184 -0
- package/dist/wasm/WasmGlueAdapter.js +51 -0
- package/dist/windows/WindowsNativeLoader.js +124 -0
- package/dist/windows/WindowsOwnedProcess.js +265 -0
- package/dist/windows/WindowsPrivateRuntime.js +143 -0
- package/hooks/hooks.json +17 -0
- package/install.sh +172 -0
- package/licenses/Apache-2.0.txt +202 -0
- package/licenses/GCC-Runtime-Library-Exception-3.1.txt +73 -0
- package/licenses/GPL-3.0.txt +674 -0
- package/licenses/MIT-template.txt +18 -0
- package/licenses/MinGW-w64-runtime.txt +240 -0
- package/licenses/Node-22.19.0-LICENSE.txt +2666 -0
- package/licenses/README.md +54 -0
- package/licenses/cfworker-MIT.txt +21 -0
- package/licenses/digfox-MIT.txt +21 -0
- package/licenses/dotnet-runtime-MIT.txt +23 -0
- package/licenses/ghidra-12.1.4-DISCLAIMER.txt +13 -0
- package/licenses/ghidra-12.1.4-LICENSE.txt +201 -0
- package/licenses/ghidra-12.1.4-NOTICE.txt +49 -0
- package/licenses/nativeaot-parser-MIT.txt +28 -0
- package/licenses/npm-dependencies.txt +2812 -0
- package/licenses/npm-runtime-notices.txt +6632 -0
- package/licenses/rea-jev-MIT.txt +21 -0
- package/licenses/rea-lab-MIT.txt +21 -0
- package/licenses/upstream-sources.json +62 -0
- package/licenses/xterm-MIT.txt +21 -0
- package/native/windows/README.md +156 -0
- package/native/windows/build/manifest.json +9 -0
- package/native/windows/build/rea-windows-x64.node +0 -0
- package/package.json +371 -4
- package/port/cli.mjs +210 -0
- package/port/hooks/guard.mjs +140 -0
- package/port/knowledge/engines.json +67 -0
- package/port/knowledge/footprints.json +189 -0
- package/port/knowledge/maps/godot-godot-csharp.json +38 -0
- package/port/knowledge/maps/godot-threejs.json +42 -0
- package/port/knowledge/maps/godot-unity.json +62 -0
- package/port/knowledge/maps/godot-unreal.json +48 -0
- package/port/knowledge/maps/unity-godot.json +52 -0
- package/port/knowledge/maps/unity-unreal.json +33 -0
- package/port/knowledge/systems.json +1554 -0
- package/port/mcp.mjs +62 -0
- package/port/plugin/mcp-launch.mjs +19 -0
- package/port/server.mjs +129 -0
- package/port/src/agent.mjs +257 -0
- package/port/src/archive.mjs +324 -0
- package/port/src/binary.mjs +606 -0
- package/port/src/blueprint.mjs +225 -0
- package/port/src/compare.mjs +165 -0
- package/port/src/connect.mjs +58 -0
- package/port/src/convert.mjs +134 -0
- package/port/src/formats.mjs +229 -0
- package/port/src/graph.mjs +275 -0
- package/port/src/knowledge.mjs +90 -0
- package/port/src/lookup.mjs +615 -0
- package/port/src/main-module.mjs +10 -0
- package/port/src/plan.mjs +606 -0
- package/port/src/porters.mjs +360 -0
- package/port/src/proofcase.mjs +343 -0
- package/port/src/relay.mjs +493 -0
- package/port/src/scan.mjs +189 -0
- package/port/src/scene.mjs +338 -0
- package/port/src/stashpad.mjs +114 -0
- package/port/src/symbols.mjs +201 -0
- package/port/src/tools.mjs +198 -0
- package/port/src/util.mjs +162 -0
- package/port/src/workspace.mjs +39 -0
- package/port/templates/unity/ReversePortSceneBuilder.cs +258 -0
- package/scripts/electron-active-hook-boundaries.cjs +392 -0
- package/scripts/electron-active-hook.cjs +673 -0
- package/scripts/hopper-demo-x11.py +787 -0
- package/scripts/prepack.mjs +60 -0
- package/scripts/prepare.mjs +28 -0
- package/scripts/rea.mjs +110 -0
- package/scripts/verify-windows-native-artifact.mjs +39 -0
- package/skills/build-inspector/SKILL.md +44 -0
- package/skills/godot-port/SKILL.md +42 -0
- package/skills/port-project/SKILL.md +59 -0
- package/skills/port-verify/SKILL.md +35 -0
- package/skills/proof-case/SKILL.md +52 -0
- package/skills/rebuild/SKILL.md +66 -0
- package/skills/reverse-engineer/SKILL.md +67 -0
- package/skills/reverse-engineer-anything/SKILL.md +204 -0
- package/skills/reverse-engineer-anything/references/android-applications.md +34 -0
- package/skills/reverse-engineer-anything/references/connection-and-recovery.md +130 -0
- package/skills/reverse-engineer-anything/references/evidence-workflows.md +54 -0
- package/skills/reverse-engineer-anything/references/godot-source.md +37 -0
- package/skills/reverse-engineer-anything/references/javascript-applications.md +175 -0
- package/skills/reverse-engineer-anything/references/native-and-artifacts.md +252 -0
- package/skills/reverse-engineer-anything/references/porting-and-rebuilds.md +92 -0
- package/skills/reverse-engineer-anything/references/runtime-observation.md +28 -0
- package/skills/reverse-engineer-anything/references/unity-source.md +32 -0
- package/skills/troubleshoot/SKILL.md +27 -0
- package/skills/unity-to-godot/SKILL.md +37 -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/third_party/wabt/README.md +24 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
// Rebuild blueprint: turns what is known about an existing game or app (a re_lookup dossier and/or genres, tags and a
|
|
2
|
+
// description) into a precise, clean-room rebuild spec: the systems it is made of, the parameters to measure on the
|
|
3
|
+
// original so the rebuild matches it in function and feel, a target engine with its conventions, milestones, a
|
|
4
|
+
// parity table to fill and verify, and a project skeleton with every measured parameter as a tunable.
|
|
5
|
+
import fs from 'node:fs';
|
|
6
|
+
import fsp from 'node:fs/promises';
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { RPError, writeJson, pascalCase, camelCase, snakeCase, kebabCase, statOrNull } from './util.mjs';
|
|
10
|
+
import { workspaceDir, isInside } from './workspace.mjs';
|
|
11
|
+
import { ENGINES, normEngine } from './knowledge.mjs';
|
|
12
|
+
import { scaffold } from './porters.mjs';
|
|
13
|
+
import { loadLookup, footprintFor, FOOTPRINTS } from './lookup.mjs';
|
|
14
|
+
|
|
15
|
+
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
16
|
+
export const KNOWLEDGE = JSON.parse(fs.readFileSync(path.join(ROOT, 'knowledge', 'systems.json'), 'utf8'));
|
|
17
|
+
const ENGINE_TARGETS = ['godot', 'godot-csharp', 'unity', 'unreal', 'threejs'];
|
|
18
|
+
const APP_TARGETS = { web: 'Web app (TypeScript + a UI framework)', flutter: 'Flutter (Dart, iOS + Android + web)', 'react-native': 'React Native (TypeScript, iOS + Android)', swift: 'Swift / SwiftUI (iOS)', kotlin: 'Kotlin / Jetpack Compose (Android)', electron: 'Electron (desktop, TypeScript)' };
|
|
19
|
+
const NON_NUMERIC = new Set(['list', 'table', 'notes', 'graph', 'formula', 'samples', 'hex', 'fields', 'curve', 'ms, curve', 'px, s']);
|
|
20
|
+
|
|
21
|
+
const esc = s => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
22
|
+
const wordRe = k => new RegExp(`(^|[^a-z0-9])${esc(k)}(s|es)?([^a-z0-9]|$)`, 'i');
|
|
23
|
+
|
|
24
|
+
/** Score archetypes against genres/tags (strong) and free text (weak). */
|
|
25
|
+
export function matchArchetypes({ genres = [], tags = [], text = '', kind = null, force = [] } = {}) {
|
|
26
|
+
const strong = [...genres, ...tags].map(s => String(s).toLowerCase());
|
|
27
|
+
const weak = String(text).toLowerCase();
|
|
28
|
+
const out = [];
|
|
29
|
+
for (const a of KNOWLEDGE.archetypes) {
|
|
30
|
+
if (kind && a.kind !== kind && !force.includes(a.id)) continue;
|
|
31
|
+
const hits = [];
|
|
32
|
+
let score = 0;
|
|
33
|
+
for (const k of a.match) {
|
|
34
|
+
const re = wordRe(k);
|
|
35
|
+
const g = strong.find(s => re.test(s));
|
|
36
|
+
if (g) { score += 2; hits.push(`genre/tag "${g}"`); } else if (re.test(weak)) { score += 1; hits.push(`description mentions "${k}"`); }
|
|
37
|
+
}
|
|
38
|
+
if (force.includes(a.id)) { score += 10; hits.unshift('requested'); }
|
|
39
|
+
if (score) out.push({ id: a.id, name: a.name, kind: a.kind, score, why: [...new Set(hits)].slice(0, 4) });
|
|
40
|
+
}
|
|
41
|
+
out.sort((a, b) => b.score - a.score);
|
|
42
|
+
const picked = out.filter(a => a.score >= 2);
|
|
43
|
+
return picked.length ? picked.slice(0, 5) : out.slice(0, 2);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function perspectiveOf(values = [], engineFp) {
|
|
47
|
+
const v = values.map(s => String(s).toLowerCase()).join(' ');
|
|
48
|
+
if (/first-person|third-person|free-roaming|\b3d\b|behind view|vr\b/.test(v)) return '3d';
|
|
49
|
+
if (/side view|side-scroll|scrolling|flip screen|text-based|\b2d\b|pixel/.test(v)) return '2d';
|
|
50
|
+
if (/isometric|top-down|bird/.test(v)) return engineFp === 'gamemaker' || engineFp === 'rpgmaker' ? '2d' : 'unknown (isometric/top-down: check whether the world is 2D sprites or 3D)';
|
|
51
|
+
return 'unknown';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function platformFeatures(categories = [], features = []) {
|
|
55
|
+
const c = [...categories, ...features].map(s => String(s).toLowerCase());
|
|
56
|
+
const add = [];
|
|
57
|
+
const has = re => c.some(s => re.test(s));
|
|
58
|
+
if (has(/achievement/)) add.push({ id: 'achievements', name: 'Achievements', build: 'Achievement list with unlock conditions (write your own names/descriptions).', measure: [{ param: 'achievements', unit: 'list', how: 'public achievement list: conditions and counts' }] });
|
|
59
|
+
if (has(/controller support/)) add.push({ id: 'gamepad', name: 'Full controller support', build: 'Every screen navigable with a gamepad; button prompts swap with the active device.', measure: [{ param: 'button_layout', unit: 'table', how: 'action per button' }] });
|
|
60
|
+
if (has(/cloud/)) add.push({ id: 'cloud-save', name: 'Cloud saves', build: 'Save files small and versioned so they sync (platform cloud API).', measure: [] });
|
|
61
|
+
if (has(/workshop|level editor|mod/)) add.push({ id: 'ugc', name: 'User content / modding', build: 'Level/mod format, editor, sharing.', measure: [{ param: 'ugc_scope', unit: 'notes', how: 'what players can create and share' }] });
|
|
62
|
+
if (has(/in-app purchase|microtransaction/)) add.push({ id: 'store', name: 'In-app store', build: 'Store screens, currencies, purchase flow (platform billing).', measure: [{ param: 'store_items', unit: 'table', how: 'items, prices, currencies' }] });
|
|
63
|
+
if (has(/leaderboard/)) add.push({ id: 'leaderboards', name: 'Leaderboards', build: 'Score submission and boards.', measure: [{ param: 'boards', unit: 'list', how: 'which boards exist and their sort' }] });
|
|
64
|
+
return add;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function chooseTarget({ target, kind, originalFp, perspective, platforms = [], web }) {
|
|
68
|
+
if (target) {
|
|
69
|
+
const t = normEngine(target);
|
|
70
|
+
if (ENGINE_TARGETS.includes(t)) return { target: t, name: ENGINES[t]?.name ?? t, engine: true, why: 'requested' };
|
|
71
|
+
if (APP_TARGETS[t]) return { target: t, name: APP_TARGETS[t], engine: false, why: 'requested' };
|
|
72
|
+
return { target: t, name: t, engine: false, why: 'requested (language/framework: no project skeleton is generated)' };
|
|
73
|
+
}
|
|
74
|
+
if (kind === 'app') {
|
|
75
|
+
const p = platforms.map(s => String(s).toLowerCase()).join(' ');
|
|
76
|
+
if (web || (!/ios|android|iphone|ipad/.test(p) && /web|browser/.test(p))) return { target: 'web', name: APP_TARGETS.web, engine: false, why: 'the original is a web app' };
|
|
77
|
+
if (/ios|iphone|ipad/.test(p) && /android/.test(p)) return { target: 'flutter', name: APP_TARGETS.flutter, engine: false, why: 'the original ships on iOS and Android: one codebase for both' };
|
|
78
|
+
if (originalFp === 'flutter' || originalFp === 'react-native' || originalFp === 'electron') return { target: originalFp, name: APP_TARGETS[originalFp], engine: false, why: 'same framework as the original: same widgets, scrolling physics and transitions' };
|
|
79
|
+
return { target: 'flutter', name: APP_TARGETS.flutter, engine: false, why: 'cross-platform default for app rebuilds' };
|
|
80
|
+
}
|
|
81
|
+
const fp = originalFp ? FOOTPRINTS[originalFp] : null;
|
|
82
|
+
if (fp && ENGINE_TARGETS.includes(fp.rebuildTarget)) return { target: fp.rebuildTarget, name: ENGINES[fp.rebuildTarget].name, engine: true, why: `the original runs on ${fp.name}: the same engine gives the same physics tick, camera conventions and rendering defaults, so measured values carry over 1:1` };
|
|
83
|
+
if (web) return { target: 'threejs', name: ENGINES.threejs.name, engine: true, why: 'the original is a browser game' };
|
|
84
|
+
if (/^2d/.test(perspective)) return { target: 'godot', name: ENGINES.godot.name, engine: true, why: '2D game: Godot has pixel-exact 2D, tilemaps and a light runtime' };
|
|
85
|
+
return { target: 'godot', name: ENGINES.godot.name, engine: true, why: 'default: free, light, good 2D and 3D; choose unity or unreal with target if the original is high-end 3D' };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const ident = p => { const s = snakeCase(p); return /^\d/.test(s) ? `p_${s}` : s; };
|
|
89
|
+
const isNum = m => !NON_NUMERIC.has(m.unit);
|
|
90
|
+
|
|
91
|
+
function stubFiles(target, systems, name) {
|
|
92
|
+
const files = {};
|
|
93
|
+
for (const s of systems) {
|
|
94
|
+
const nums = s.measure.filter(isNum), other = s.measure.filter(m => !isNum(m));
|
|
95
|
+
const header = (c) => [`${c} ${s.name} — rebuild of the original's behaviour with your own code and assets.`, `${c} ${s.build}`, `${c} Values come from parity.json (measured on the original); 0 means not measured yet.`, ...other.map(m => `${c} TODO(measure) ${m.param} [${m.unit}]: ${m.how}`)].join('\n');
|
|
96
|
+
const C = `${pascalCase(s.id)}System`;
|
|
97
|
+
if (target === 'godot') {
|
|
98
|
+
files[`systems/${snakeCase(s.id)}.gd`] = `${header('##')}\nextends Node\n\n${nums.map(m => `## ${m.how}\n@export var ${ident(m.param)}: float = 0.0 # ${m.unit}`).join('\n')}\n\nfunc _ready() -> void:\n\tpass\n\nfunc _physics_process(delta: float) -> void:\n\tpass\n`;
|
|
99
|
+
} else if (target === 'godot-csharp') {
|
|
100
|
+
files[`Systems/${C}.cs`] = `${header('//')}\nusing Godot;\n\npublic partial class ${C} : Node\n{\n${nums.map(m => `\t/// <summary>${m.how} (${m.unit})</summary>\n\t[Export] public float ${pascalCase(ident(m.param))} { get; set; } = 0f;`).join('\n')}\n\n\tpublic override void _PhysicsProcess(double delta) { }\n}\n`;
|
|
101
|
+
} else if (target === 'unity') {
|
|
102
|
+
files[`Assets/Scripts/Systems/${C}.cs`] = `${header('//')}\nusing UnityEngine;\n\npublic class ${C} : MonoBehaviour\n{\n${nums.map(m => ` [Tooltip("${m.how.replace(/"/g, "'")} (${m.unit})")]\n [SerializeField] float ${camelCase(ident(m.param))} = 0f;`).join('\n')}\n\n void FixedUpdate() { }\n}\n`;
|
|
103
|
+
} else if (target === 'threejs') {
|
|
104
|
+
files[`src/systems/${kebabCase(s.id)}.ts`] = `${header('//')}\nexport const ${camelCase(s.id)}Params = {\n${nums.map(m => ` /** ${m.how} (${m.unit}) */\n ${camelCase(ident(m.param))}: 0,`).join('\n')}\n};\n\nexport class ${C} {\n constructor(readonly params = { ...${camelCase(s.id)}Params }) {}\n fixedUpdate(_dt: number): void {}\n}\n`;
|
|
105
|
+
} else if (target === 'unreal') {
|
|
106
|
+
const P = pascalCase(name);
|
|
107
|
+
files[`Source/${P}/Systems/${C}Component.h`] = `${header('//')}\n#pragma once\n#include "CoreMinimal.h"\n#include "Components/ActorComponent.h"\n#include "${C}Component.generated.h"\n\nUCLASS(ClassGroup=(Rebuild), meta=(BlueprintSpawnableComponent))\nclass U${C}Component : public UActorComponent\n{\n\tGENERATED_BODY()\npublic:\n${nums.map(m => `\t/** ${m.how} (${m.unit}; Unreal uses cm) */\n\tUPROPERTY(EditAnywhere, Category="Measured") float ${pascalCase(ident(m.param))} = 0.f;`).join('\n')}\n};\n`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return files;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function markdown(bp) {
|
|
114
|
+
const L = [];
|
|
115
|
+
L.push(`# Rebuild blueprint — ${bp.name}`, '', `Working title: **${bp.workingTitle}** — pick your own product name, logo and art before anything is published.`, '');
|
|
116
|
+
L.push('## What it is', '', `- Kind: ${bp.kind}; perspective: ${bp.perspective}`, `- Archetypes: ${bp.archetypes.map(a => `${a.name} (${a.why.join(', ')})`).join('; ') || 'none matched — add genres/tags or archetypes'}`);
|
|
117
|
+
if (bp.original.engine) L.push(`- Original engine: ${bp.original.engine}${bp.original.version ? ` ${bp.original.version}` : ''} (${bp.original.confidence ?? 'given'})`);
|
|
118
|
+
if (bp.original.conventions) L.push(`- Original conventions: ${bp.original.conventions}`);
|
|
119
|
+
L.push(`- Target: **${bp.target.name}** — ${bp.target.why}`);
|
|
120
|
+
if (bp.target.conventions) L.push(`- Target conventions: ${bp.target.conventions}`);
|
|
121
|
+
if (bp.target.note) L.push(`- ${bp.target.note}`);
|
|
122
|
+
L.push('', '## Clean-room rules', '', `- Rebuild freely: ${KNOWLEDGE.cleanRoom.free.join('; ')}.`, `- Make your own: ${KNOWLEDGE.cleanRoom.own.join('; ')}.`, `- Never: ${KNOWLEDGE.cleanRoom.never.join('; ')}.`, '');
|
|
123
|
+
L.push('## Capture the original', '', ...KNOWLEDGE.method.capture.map(s => `- ${s}`), '', '### How to measure', '', ...KNOWLEDGE.method.measure.map(s => `- ${s}`), '');
|
|
124
|
+
if (bp.references.length) L.push('### Public references', '', ...bp.references.map(r => `- ${r}`), '');
|
|
125
|
+
L.push('## Systems', '');
|
|
126
|
+
for (const s of bp.systems) {
|
|
127
|
+
L.push(`### ${s.name}`, '', s.build, '', '| Parameter | Unit | How to measure | Value | ± |', '| --- | --- | --- | --- | --- |');
|
|
128
|
+
for (const m of s.measure) L.push(`| \`${m.param}\` | ${m.unit} | ${m.how} | | ${isNum(m) ? '5%' : '—'} |`);
|
|
129
|
+
L.push('');
|
|
130
|
+
}
|
|
131
|
+
L.push('## Milestones', '', ...bp.milestones.map((m, i) => `${i}. **${m.name}** — ${m.done}`), '');
|
|
132
|
+
L.push('## Verify', '', ...KNOWLEDGE.method.verify.map(s => `- ${s}`), '', '`parity.json` holds every parameter: fill `original` from your measurements, `rebuild` from the same measurement on your build; a parameter passes inside its tolerance.', '');
|
|
133
|
+
if (bp.openSource.length) L.push('## Existing open-source work', '', ...bp.openSource.map(o => `- [${o.repo}](${o.url}) — ${o.kind}${o.license ? `, ${o.license}` : ', no license given'}: ${o.description}`), '', 'Check each license before reusing any of it; "no license" means all rights reserved.', '');
|
|
134
|
+
return `${L.join('\n')}\n`;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export async function blueprintTool({ lookupId, name, kind, genres = [], tags = [], description = '', engine, target, perspective, archetypes = [], output, scaffold: wantScaffold = true } = {}) {
|
|
138
|
+
const d = lookupId ? await loadLookup(lookupId) : null;
|
|
139
|
+
const title = name ?? d?.name;
|
|
140
|
+
if (!title) throw new RPError('INVALID_ARGUMENT', 'Give a name (or a lookupId from re_lookup).');
|
|
141
|
+
const theKind = kind ?? (d?.kind === 'app' || d?.kind === 'web' && !(d?.tech?.web?.stack ?? []).some(s => s.group === 'engine') ? 'app' : 'game');
|
|
142
|
+
for (const a of archetypes) if (!KNOWLEDGE.archetypes.some(x => x.id === a)) throw new RPError('INVALID_ARGUMENT', `Unknown archetype ${a}. Archetypes: ${KNOWLEDGE.archetypes.map(x => x.id).join(', ')}.`);
|
|
143
|
+
const allGenres = [...genres, ...(d?.identity?.genres ?? []), ...(d?.identity?.modes ?? [])];
|
|
144
|
+
const allTags = [...tags, ...(d?.identity?.categories ?? [])];
|
|
145
|
+
const text = [description, d?.identity?.description, title].filter(Boolean).join(' ');
|
|
146
|
+
const matched = matchArchetypes({ genres: allGenres, tags: allTags, text, kind: theKind, force: archetypes });
|
|
147
|
+
const origEngine = engine ? { name: engine, confidence: 'given' } : d?.tech?.engines?.[0] ?? null;
|
|
148
|
+
const originalFp = origEngine ? footprintFor(origEngine.name) : (d?.tech?.web ? 'web' : null);
|
|
149
|
+
const persp = perspective ?? perspectiveOf([...allGenres, ...allTags, ...(d ? Object.values(d.identity ?? {}).flat().filter(x => typeof x === 'string') : [])], originalFp);
|
|
150
|
+
const web = !!d?.tech?.web;
|
|
151
|
+
const tgt = chooseTarget({ target, kind: theKind, originalFp, perspective: persp, platforms: d?.identity?.platforms ?? [], web });
|
|
152
|
+
const origKey = originalFp && FOOTPRINTS[originalFp]?.engineId;
|
|
153
|
+
const conv = k => { const e = ENGINES[k]; return e ? `${e.axes.up} up, ${e.axes.forward} forward, ${e.handedness}-handed, ${e.units}, physics ${e.physicsTick}, FOV ${e.fov}` : null; };
|
|
154
|
+
if (tgt.engine) {
|
|
155
|
+
tgt.conventions = conv(tgt.target);
|
|
156
|
+
if (origKey && origKey !== tgt.target && ENGINES[origKey]) tgt.note = `Original (${ENGINES[origKey].name}) and target differ: convert every measured position/rotation/FOV with port_convert {from:"${origKey}", to:"${tgt.target}"}; physics ${ENGINES[origKey].physicsTick} vs ${ENGINES[tgt.target].physicsTick}.`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const core = KNOWLEDGE.core[theKind] ?? KNOWLEDGE.core.game;
|
|
160
|
+
const fromArch = matched.flatMap(m => KNOWLEDGE.archetypes.find(a => a.id === m.id).systems.map(s => ({ ...s, archetype: m.id })));
|
|
161
|
+
const extra = platformFeatures(d?.identity?.categories ?? allTags, d?.tech?.app ? d?.identity?.categories ?? [] : []);
|
|
162
|
+
const seen = new Set();
|
|
163
|
+
const systems = [...fromArch, ...core.map(s => ({ ...s, archetype: 'core' })), ...extra.map(s => ({ ...s, archetype: 'platform' }))].filter(s => !seen.has(s.id) && seen.add(s.id));
|
|
164
|
+
|
|
165
|
+
const slug = kebabCase(title).slice(0, 40) || 'rebuild';
|
|
166
|
+
const workingTitle = `${title.replace(/[™®©]/g, '').trim()} Rebuild`;
|
|
167
|
+
const milestones = [
|
|
168
|
+
{ name: 'Reference capture', done: 'recordings and screenshots of the original exist; the feel parameters of the first two systems are measured in parity.json' },
|
|
169
|
+
{ name: 'Graybox vertical slice', done: `${systems[0]?.name ?? 'the core system'}, camera and input work in one level/screen with placeholder shapes, and their parameters pass parity` },
|
|
170
|
+
{ name: 'All systems', done: 'every system in this blueprint works with placeholder content; every numeric parameter is filled' },
|
|
171
|
+
{ name: 'Own content', done: 'own art, audio, text and levels/screens replace the placeholders (nothing taken from the original)' },
|
|
172
|
+
{ name: 'UI and feedback parity', done: 'every screen matches the layout fractions; sounds fire on the same events' },
|
|
173
|
+
{ name: 'Side-by-side verification', done: 'all parity.json parameters within tolerance; blind test remarks resolved' },
|
|
174
|
+
];
|
|
175
|
+
const references = [...(d?.references?.pages ?? []).map(p => `${p.title}: ${p.url}`), ...(d?.references?.videos ?? []).slice(0, 4).map(v => `Video: ${v}`), ...(d?.references?.screenshots ?? []).slice(0, 6).map(s => `Screenshot: ${s}`)];
|
|
176
|
+
const openSource = (d?.openSource ?? []).filter(o => o.kind !== 'related').slice(0, 8);
|
|
177
|
+
const bp = {
|
|
178
|
+
name: title, workingTitle, kind: theKind, perspective: persp, lookupId: lookupId ?? null,
|
|
179
|
+
archetypes: matched, original: { engine: origEngine?.name ?? null, version: origEngine?.version ?? null, confidence: origEngine?.confidence ?? null, footprint: originalFp, conventions: origKey ? conv(origKey) : null },
|
|
180
|
+
target: tgt, systems: systems.map(({ id, name: n, build, measure, archetype }) => ({ id, name: n, archetype, build, measure })),
|
|
181
|
+
milestones, references, openSource, cleanRoom: KNOWLEDGE.cleanRoom, method: KNOWLEDGE.method,
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
// Files: BLUEPRINT.md, parity.json and (for engine targets) a project skeleton with every parameter as a tunable.
|
|
185
|
+
const dir = path.join(await workspaceDir('blueprints'), slug);
|
|
186
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
187
|
+
const parity = { name: title, target: tgt.target, tolerance: { default: '5%', frames: 1 }, parameters: bp.systems.flatMap(s => s.measure.map(m => ({ system: s.id, param: m.param, unit: m.unit, how: m.how, numeric: isNum(m), original: null, rebuild: null, tolerance: isNum(m) ? '5%' : null, status: 'todo' }))) };
|
|
188
|
+
await fsp.writeFile(path.join(dir, 'BLUEPRINT.md'), markdown(bp));
|
|
189
|
+
await writeJson(path.join(dir, 'parity.json'), parity);
|
|
190
|
+
const written = ['BLUEPRINT.md', 'parity.json'].map(f => path.join(dir, f));
|
|
191
|
+
let projectDir = null;
|
|
192
|
+
if (wantScaffold && tgt.engine) {
|
|
193
|
+
const busy = async p => { const st = await statOrNull(p); return !!st && (!st.isDirectory() || (await fsp.readdir(p)).length > 0); };
|
|
194
|
+
if (output) {
|
|
195
|
+
projectDir = path.resolve(output);
|
|
196
|
+
if (await busy(projectDir)) throw new RPError('OUTPUT_NOT_EMPTY', `Output folder must be new or empty: ${projectDir}`);
|
|
197
|
+
} else {
|
|
198
|
+
projectDir = path.join(dir, `project-${tgt.target}`);
|
|
199
|
+
for (let n = 2; await busy(projectDir); n++) projectDir = path.join(dir, `project-${tgt.target}-${n}`);
|
|
200
|
+
}
|
|
201
|
+
const files = { ...scaffold(tgt.target, { name: workingTitle }), ...stubFiles(tgt.target, bp.systems, workingTitle) };
|
|
202
|
+
for (const [rel, content] of Object.entries(files)) {
|
|
203
|
+
const abs = path.resolve(projectDir, rel);
|
|
204
|
+
if (!isInside(abs, projectDir)) continue;
|
|
205
|
+
await fsp.mkdir(path.dirname(abs), { recursive: true });
|
|
206
|
+
await fsp.writeFile(abs, content);
|
|
207
|
+
written.push(abs);
|
|
208
|
+
}
|
|
209
|
+
await fsp.copyFile(path.join(dir, 'BLUEPRINT.md'), path.join(projectDir, 'BLUEPRINT.md'));
|
|
210
|
+
await fsp.copyFile(path.join(dir, 'parity.json'), path.join(projectDir, 'parity.json'));
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
...bp, method: undefined, cleanRoom: { never: KNOWLEDGE.cleanRoom.never, note: KNOWLEDGE.cleanRoom.note },
|
|
214
|
+
parameters: parity.parameters.length, files: { blueprint: path.join(dir, 'BLUEPRINT.md'), parity: path.join(dir, 'parity.json'), project: projectDir, written: written.length },
|
|
215
|
+
next: [
|
|
216
|
+
'Capture the original (BLUEPRINT.md → Capture) and fill parity.json "original" values',
|
|
217
|
+
projectDir ? `Open ${projectDir} in ${tgt.name}; the systems/ stubs hold every numeric parameter as a tunable` : `Set up a ${tgt.name} project; mirror the systems list as modules`,
|
|
218
|
+
...(openSource.length ? ['Open-source work exists (openSource): check licenses; re_lookup {github, mirror:true} + port_plan if you may reuse it'] : []),
|
|
219
|
+
...(tgt.note ? ['port_convert for every measured transform/FOV (engines differ)'] : []),
|
|
220
|
+
'Measure the rebuild the same way, fill "rebuild", and keep going until every parameter is within tolerance',
|
|
221
|
+
],
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export const ARCHETYPE_IDS = KNOWLEDGE.archetypes.map(a => a.id);
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// Diffs (two builds, two versions of a project, two packs or binaries), raw probing of unknown data
|
|
2
|
+
// (hex view, entropy map, embedded files, record strides), carving, and the architecture report.
|
|
3
|
+
import fs from 'node:fs/promises';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { createReadStream, createWriteStream } from 'node:fs';
|
|
6
|
+
import { pipeline } from 'node:stream/promises';
|
|
7
|
+
import crypto from 'node:crypto';
|
|
8
|
+
import { RPError, readAt, requireFile, statOrNull, walk, MiB, sha256File, limit, pascalCase } from './util.mjs';
|
|
9
|
+
import { identify, findSignatures, entropyProfile, strideGuess } from './formats.mjs';
|
|
10
|
+
import { inspectBinary } from './binary.mjs';
|
|
11
|
+
import { openArchive } from './archive.mjs';
|
|
12
|
+
import { workspaceDir } from './workspace.mjs';
|
|
13
|
+
import { scanProject } from './scan.mjs';
|
|
14
|
+
import { buildGraph, graphMermaid } from './graph.mjs';
|
|
15
|
+
import { readScene } from './scene.mjs';
|
|
16
|
+
|
|
17
|
+
export function hexdump(buf, base = 0) {
|
|
18
|
+
const lines = [];
|
|
19
|
+
for (let i = 0; i < buf.length; i += 16) {
|
|
20
|
+
const row = buf.subarray(i, i + 16);
|
|
21
|
+
const hex = [...row].map(b => b.toString(16).padStart(2, '0')).join(' ').padEnd(47);
|
|
22
|
+
const ascii = [...row].map(b => (b >= 0x20 && b < 0x7f ? String.fromCharCode(b) : '.')).join('');
|
|
23
|
+
lines.push(`${(base + i).toString(16).padStart(8, '0')} ${hex} ${ascii}`);
|
|
24
|
+
}
|
|
25
|
+
return lines.join('\n');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export async function probe({ file, offset = 0, length = 256, maxMB = 512 } = {}) {
|
|
29
|
+
const { abs, size } = await requireFile(file);
|
|
30
|
+
if (offset < 0 || offset >= Math.max(size, 1)) throw new RPError('INVALID_ARGUMENT', `offset must be within the file (0…${size - 1}).`);
|
|
31
|
+
const head = await readAt(abs, offset, 4096);
|
|
32
|
+
const view = head.subarray(0, Math.max(16, Math.min(length, 4096)));
|
|
33
|
+
const strideBuf = await readAt(abs, offset, 65536);
|
|
34
|
+
const span = Math.min(maxMB, 64 * 1024) * MiB;
|
|
35
|
+
return {
|
|
36
|
+
file: abs, size, offset, identified: identify(head),
|
|
37
|
+
hex: hexdump(view, offset),
|
|
38
|
+
entropy: await entropyProfile(abs, { start: offset, maxBytes: span }),
|
|
39
|
+
embedded: await findSignatures(abs, { start: offset, maxBytes: span, max: 150 }),
|
|
40
|
+
strides: strideGuess(strideBuf),
|
|
41
|
+
hint: 'embedded[] are candidate files inside this one (carve with re_extract); strides suggest fixed-size records (tables); entropy ≥ 7.5 means compressed or encrypted data.',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export async function carve({ file, offset, length, name } = {}) {
|
|
46
|
+
const { abs, size } = await requireFile(file);
|
|
47
|
+
if (!Number.isInteger(offset) || offset < 0 || offset >= size) throw new RPError('INVALID_ARGUMENT', 'offset must be an integer inside the file.');
|
|
48
|
+
let len = length;
|
|
49
|
+
let kind = identify(await readAt(abs, offset, 4096));
|
|
50
|
+
if (!len) {
|
|
51
|
+
const sig = (await findSignatures(abs, { start: offset, maxBytes: 64 * MiB, max: 5, includeStart: true })).hits.find(h => h.offset === offset);
|
|
52
|
+
if (sig?.size) len = sig.size;
|
|
53
|
+
else throw new RPError('INVALID_ARGUMENT', `Give length: the size of a ${kind.name} at this offset is not stored in its header.`);
|
|
54
|
+
}
|
|
55
|
+
len = Math.min(len, size - offset);
|
|
56
|
+
const ext = { png: 'png', jpeg: 'jpg', gif: 'gif', webp: 'webp', wav: 'wav', ogg: 'ogg', flac: 'flac', mp4: 'mp4', glb: 'glb', zip: 'zip', 'godot-pck': 'pck', pe: 'exe', elf: 'elf', dds: 'dds', fbx: 'fbx', sqlite: 'sqlite', pdf: 'pdf', otf: 'otf', woff: 'woff', woff2: 'woff2', midi: 'mid', 'godot-ctex': 'ctex', 'godot-resource': 'res', unityfs: 'bundle', wasm: 'wasm' }[kind.id] ?? 'bin';
|
|
57
|
+
const dir = await workspaceDir('extracted', 'carved');
|
|
58
|
+
const base = (name ? String(name).replace(/[^A-Za-z0-9._-]+/g, '_').slice(0, 80) : `${path.basename(abs).replace(/[^A-Za-z0-9._-]+/g, '_')}@${offset.toString(16)}`) + (name && path.extname(name) ? '' : `.${ext}`);
|
|
59
|
+
const dest = path.join(dir, base);
|
|
60
|
+
await pipeline(createReadStream(abs, { start: offset, end: offset + len - 1 }), createWriteStream(dest));
|
|
61
|
+
kind = identify(await readAt(dest, 0, 4096));
|
|
62
|
+
return { file: dest, bytes: len, identified: kind, from: { file: abs, offset } };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async function quickHash(file, size) {
|
|
66
|
+
if (size <= 64 * MiB) return sha256File(file);
|
|
67
|
+
const h = crypto.createHash('sha256');
|
|
68
|
+
h.update(await readAt(file, 0, MiB)); h.update(await readAt(file, Math.floor(size / 2), MiB)); h.update(await readAt(file, size - MiB, MiB));
|
|
69
|
+
return `sampled:${h.digest('hex')}`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export async function compare({ a, b, limit: max = 300 } = {}) {
|
|
73
|
+
const sa = await statOrNull(path.resolve(a ?? '')), sb = await statOrNull(path.resolve(b ?? ''));
|
|
74
|
+
if (!sa || !sb) throw new RPError('NOT_FOUND', 'Both a and b must exist.');
|
|
75
|
+
const A = path.resolve(a), Bp = path.resolve(b);
|
|
76
|
+
const cap = Math.max(10, Math.min(5000, max));
|
|
77
|
+
if (sa.isDirectory() && sb.isDirectory()) {
|
|
78
|
+
const [wa, wb] = await Promise.all([walk(A, { maxFiles: 200000, ignore: new Set(['.git']) }), walk(Bp, { maxFiles: 200000, ignore: new Set(['.git']) })]);
|
|
79
|
+
const ma = new Map(wa.files.map(f => [f.rel, f])), mb = new Map(wb.files.map(f => [f.rel, f]));
|
|
80
|
+
const added = [], removed = [], changed = [];
|
|
81
|
+
for (const [rel, f] of mb) if (!ma.has(rel)) added.push({ file: rel, size: f.size });
|
|
82
|
+
for (const [rel, f] of ma) if (!mb.has(rel)) removed.push({ file: rel, size: f.size });
|
|
83
|
+
for (const [rel, fa] of ma) {
|
|
84
|
+
const fb = mb.get(rel);
|
|
85
|
+
if (!fb) continue;
|
|
86
|
+
if (fa.size !== fb.size) changed.push({ file: rel, sizeA: fa.size, sizeB: fb.size, delta: fb.size - fa.size });
|
|
87
|
+
else if (fa.size && (await quickHash(fa.abs, fa.size)) !== (await quickHash(fb.abs, fb.size))) changed.push({ file: rel, sizeA: fa.size, sizeB: fb.size, delta: 0 });
|
|
88
|
+
}
|
|
89
|
+
changed.sort((x, y) => Math.abs(y.delta) - Math.abs(x.delta));
|
|
90
|
+
return { kind: 'folders', a: A, b: Bp, summary: { added: added.length, removed: removed.length, changed: changed.length, unchanged: ma.size - removed.length - changed.length }, added: limit(added, cap), removed: limit(removed, cap), changed: limit(changed, cap) };
|
|
91
|
+
}
|
|
92
|
+
if (!sa.isFile() || !sb.isFile()) throw new RPError('INVALID_ARGUMENT', 'Compare two folders or two files.');
|
|
93
|
+
const ka = identify(await readAt(A, 0, 4096)), kb = identify(await readAt(Bp, 0, 4096));
|
|
94
|
+
// Archives / packs
|
|
95
|
+
const arcA = await openArchive(A).catch(() => null), arcB = arcA ? await openArchive(Bp).catch(() => null) : null;
|
|
96
|
+
if (arcA?.entries?.length && arcB?.entries) {
|
|
97
|
+
const ea = new Map(arcA.entries.map(e => [e.path, e])), eb = new Map(arcB.entries.map(e => [e.path, e]));
|
|
98
|
+
const added = [...eb.keys()].filter(k => !ea.has(k)).map(k => ({ path: k, size: eb.get(k).size }));
|
|
99
|
+
const removed = [...ea.keys()].filter(k => !eb.has(k)).map(k => ({ path: k, size: ea.get(k).size }));
|
|
100
|
+
const changed = [...ea.keys()].filter(k => eb.has(k) && (ea.get(k).size !== eb.get(k).size || (ea.get(k).md5 && eb.get(k).md5 && ea.get(k).md5 !== eb.get(k).md5))).map(k => ({ path: k, sizeA: ea.get(k).size, sizeB: eb.get(k).size, delta: eb.get(k).size - ea.get(k).size }));
|
|
101
|
+
changed.sort((x, y) => Math.abs(y.delta) - Math.abs(x.delta));
|
|
102
|
+
return { kind: 'archives', format: [arcA.format, arcB.format], a: A, b: Bp, ...(arcA.godotVersion ? { godotVersion: [arcA.godotVersion, arcB.godotVersion] } : {}), summary: { added: added.length, removed: removed.length, changed: changed.length, entriesA: ea.size, entriesB: eb.size }, added: limit(added, cap), removed: limit(removed, cap), changed: limit(changed, cap) };
|
|
103
|
+
}
|
|
104
|
+
// Executables
|
|
105
|
+
if (ka.category === 'executable' && kb.category === 'executable') {
|
|
106
|
+
const [ia, ib] = await Promise.all([inspectBinary({ file: A, strings: { limit: 1 } }), inspectBinary({ file: Bp, strings: { limit: 1 } })]);
|
|
107
|
+
const libs = i => new Set((i.binary?.imports ?? []).flatMap(x => (x.libraries ? x.libraries : [x.library])));
|
|
108
|
+
const fns = i => new Set((i.binary?.imports ?? []).flatMap(x => (x.functions ?? []).map(f => `${x.library}!${f}`)));
|
|
109
|
+
const ex = i => new Set(i.binary?.exports?.names ?? []);
|
|
110
|
+
const diff = (x, y) => ({ added: [...y].filter(v => !x.has(v)).slice(0, cap), removed: [...x].filter(v => !y.has(v)).slice(0, cap) });
|
|
111
|
+
const secs = i => new Map((i.binary?.sections ?? []).map(s => [s.name, s]));
|
|
112
|
+
const sA = secs(ia), sB = secs(ib);
|
|
113
|
+
const sections = [...new Set([...sA.keys(), ...sB.keys()])].map(n => ({ name: n, sizeA: sA.get(n)?.rawSize ?? sA.get(n)?.size ?? null, sizeB: sB.get(n)?.rawSize ?? sB.get(n)?.size ?? null, entropyA: sA.get(n)?.entropy, entropyB: sB.get(n)?.entropy })).filter(s => s.sizeA !== s.sizeB || s.entropyA !== s.entropyB);
|
|
114
|
+
return { kind: 'binaries', a: A, b: Bp, identical: ia.sha256 === ib.sha256, format: [ia.binary?.format, ib.binary?.format], arch: [ia.binary?.arch, ib.binary?.arch], size: [ia.size, ib.size], timestamp: [ia.binary?.timestamp, ib.binary?.timestamp], libraries: diff(libs(ia), libs(ib)), importedFunctions: diff(fns(ia), fns(ib)), exports: diff(ex(ia), ex(ib)), changedSections: sections.slice(0, 100), hints: [ia.hints, ib.hints] };
|
|
115
|
+
}
|
|
116
|
+
// Raw bytes
|
|
117
|
+
const BLOCK = 4096, sizeA = sa.size, sizeB = sb.size;
|
|
118
|
+
const scan = Math.min(Math.max(sizeA, sizeB), 512 * MiB);
|
|
119
|
+
const fa = await fs.open(A, 'r'), fb = await fs.open(Bp, 'r');
|
|
120
|
+
let first = null, blocks = 0;
|
|
121
|
+
const regions = [];
|
|
122
|
+
try {
|
|
123
|
+
const ba = Buffer.alloc(MiB), bb = Buffer.alloc(MiB);
|
|
124
|
+
for (let pos = 0; pos < scan; pos += MiB) {
|
|
125
|
+
const [ra, rb] = await Promise.all([fa.read(ba, 0, MiB, pos), fb.read(bb, 0, MiB, pos)]);
|
|
126
|
+
const n = Math.max(ra.bytesRead, rb.bytesRead);
|
|
127
|
+
for (let o = 0; o < n; o += BLOCK) {
|
|
128
|
+
const x = ba.subarray(o, Math.min(o + BLOCK, ra.bytesRead)), y = bb.subarray(o, Math.min(o + BLOCK, rb.bytesRead));
|
|
129
|
+
if (x.equals(y)) continue;
|
|
130
|
+
blocks++;
|
|
131
|
+
if (first === null) { let k = 0; while (k < Math.min(x.length, y.length) && x[k] === y[k]) k++; first = pos + o + k; }
|
|
132
|
+
const at = pos + o, last = regions[regions.length - 1];
|
|
133
|
+
if (last && last.end === at) last.end = at + BLOCK; else if (regions.length < 200) regions.push({ start: at, end: at + BLOCK });
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
} finally { await fa.close(); await fb.close(); }
|
|
137
|
+
return { kind: 'bytes', a: A, b: Bp, formats: [ka.name, kb.name], size: [sizeA, sizeB], identical: blocks === 0 && sizeA === sizeB, firstDifference: first, differingBlocks4K: blocks, regions: regions.map(r => ({ start: r.start, end: r.end, length: r.end - r.start })), scannedBytes: scan, hint: first !== null ? `re_probe {file, offset:${first}} on each file shows the bytes around the first difference.` : undefined };
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export async function report({ path: dir, out } = {}) {
|
|
141
|
+
const scan = await scanProject({ path: dir });
|
|
142
|
+
const graph = await buildGraph(dir);
|
|
143
|
+
const name = scan.engines.find(e => e.details?.name)?.details?.name ?? path.basename(scan.root);
|
|
144
|
+
const lines = [`# Architecture — ${name}`, '', `Generated by [ReversePort](https://github.com/laaielichter/reverseport) on ${new Date().toISOString().slice(0, 10)} from \`${scan.root}\`.`, ''];
|
|
145
|
+
lines.push('## At a glance', '', `- **Engine / stack:** ${scan.engines.map(e => e.name).join(', ') || 'not detected'}`, `- **Files:** ${scan.files} (${(scan.totalBytes / MiB).toFixed(1)} MiB)`, `- **Languages:** ${Object.entries(scan.languages).map(([l, v]) => `${l} (${v.files} files, ${v.lines} lines)`).join(', ') || '—'}`, `- **Entry points:** ${scan.entryPoints.map(e => `\`${e.file}\``).join(', ') || '—'}`, '');
|
|
146
|
+
lines.push('## Module graph', '', 'Most connected files (arrows point to what a file depends on):', '', '```mermaid', graphMermaid(graph, 40), '```', '');
|
|
147
|
+
if (graph.cycles.length) lines.push('## Dependency cycles', '', ...graph.cycles.slice(0, 10).map(c => `- ${c.map(x => `\`${x}\``).join(' ↔ ')}`), '');
|
|
148
|
+
const hubs = [...graph.nodes.keys()].map(k => ({ k, n: graph.inDegree.get(k) })).sort((x, y) => y.n - x.n).slice(0, 12).filter(x => x.n);
|
|
149
|
+
if (hubs.length) lines.push('## Most used', '', '| File | Used by |', '|---|---|', ...hubs.map(h => `| \`${h.k}\` | ${h.n} |`), '');
|
|
150
|
+
const scenes = scan.entryPoints.filter(e => /\.(tscn|unity|prefab)$/.test(e.file)).slice(0, 3);
|
|
151
|
+
for (const s of scenes) {
|
|
152
|
+
const sc = await readScene(path.join(scan.root, s.file)).catch(() => null);
|
|
153
|
+
if (sc?.mermaid) lines.push(`## Scene: ${s.file}`, '', '```mermaid', sc.mermaid, '```', '');
|
|
154
|
+
}
|
|
155
|
+
const classes = [];
|
|
156
|
+
for (const n of graph.nodes.values()) for (const c of n.sym?.classes ?? []) if (c.name) classes.push({ name: c.name, extends: c.extends, file: n.file, functions: n.sym.functions.length });
|
|
157
|
+
if (classes.length) lines.push('## Classes', '', '| Class | Extends | File | Functions |', '|---|---|---|---|', ...classes.slice(0, 150).map(c => `| ${c.name} | ${c.extends ?? ''} | \`${c.file}\` | ${c.functions} |`), '');
|
|
158
|
+
if (graph.orphans.length) lines.push('## Possibly unused', '', ...graph.orphans.slice(0, 40).map(o => `- \`${o}\``), '');
|
|
159
|
+
const ext = [...graph.externals.entries()].sort((x, y) => y[1] - x[1]).slice(0, 25);
|
|
160
|
+
if (ext.length) lines.push('## External dependencies', '', ...ext.map(([k, v]) => `- ${k} (${v})`), '');
|
|
161
|
+
const dest = out ? path.resolve(out) : path.join(await workspaceDir('reports'), `${pascalCase(name)}-ARCHITECTURE.md`);
|
|
162
|
+
await fs.mkdir(path.dirname(dest), { recursive: true });
|
|
163
|
+
await fs.writeFile(dest, lines.join('\n'));
|
|
164
|
+
return { file: dest, name, engines: scan.engines.map(e => e.name), files: scan.files, classes: classes.length, cycles: graph.cycles.length, entryPoints: scan.entryPoints, preview: lines.slice(0, 40).join('\n') };
|
|
165
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// `reverseport connect [client]`: the exact snippet to connect ReversePort to any agent, with no setup wizard and no
|
|
2
|
+
// dependencies. MCP clients get their own config format; everything else gets HTTP, OpenAPI or function definitions.
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { RPError } from './util.mjs';
|
|
6
|
+
import { closest } from './agent.mjs';
|
|
7
|
+
|
|
8
|
+
const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
9
|
+
|
|
10
|
+
function launch(mode) {
|
|
11
|
+
// On Windows, clients cannot start the npx .cmd shim directly; cmd /c does it.
|
|
12
|
+
if (mode === 'npx') return process.platform === 'win32' ? { command: 'cmd', args: ['/c', 'npx', '-y', 'reverseport@latest', 'mcp'] } : { command: 'npx', args: ['-y', 'reverseport@latest', 'mcp'] };
|
|
13
|
+
return { command: 'node', args: [path.join(REPO, 'bin', 'reverseport.mjs'), 'mcp'] };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const json = v => JSON.stringify(v, null, 2);
|
|
17
|
+
|
|
18
|
+
export const CLIENTS = {
|
|
19
|
+
'claude-code': { file: 'shell', snippet: l => `claude mcp add rea -- ${l.command} ${l.args.join(' ')}\n# or instead (not both), the plugin with skills and the porting agent:\n/plugin marketplace add laaielichter/reverseport\n/plugin install reverseport@reverseport` },
|
|
20
|
+
'claude-desktop': { file: 'claude_desktop_config.json', snippet: l => json({ mcpServers: { rea: l } }) },
|
|
21
|
+
cursor: { file: '~/.cursor/mcp.json', snippet: l => json({ mcpServers: { rea: l } }) },
|
|
22
|
+
windsurf: { file: '~/.codeium/windsurf/mcp_config.json', snippet: l => json({ mcpServers: { rea: l } }) },
|
|
23
|
+
cline: { file: 'cline_mcp_settings.json', snippet: l => json({ mcpServers: { rea: { ...l, disabled: false } } }) },
|
|
24
|
+
'roo-code': { file: 'mcp_settings.json', snippet: l => json({ mcpServers: { rea: l } }) },
|
|
25
|
+
vscode: { file: '.vscode/mcp.json (GitHub Copilot agent mode)', snippet: l => json({ servers: { rea: { type: 'stdio', ...l } } }) },
|
|
26
|
+
codex: { file: '~/.codex/config.toml', snippet: l => `[mcp_servers.rea]\ncommand = ${JSON.stringify(l.command)}\nargs = ${JSON.stringify(l.args)}\nstartup_timeout_sec = 60\ntool_timeout_sec = 600` },
|
|
27
|
+
'gemini-cli': { file: '~/.gemini/settings.json', snippet: l => json({ mcpServers: { rea: { ...l, env: { REVERSEPORT_SCHEMA: 'portable' }, timeout: 600000 } } }) },
|
|
28
|
+
opencode: { file: 'opencode.json', snippet: l => json({ mcp: { rea: { type: 'local', command: [l.command, ...l.args], enabled: true } } }) },
|
|
29
|
+
zed: { file: 'Zed settings.json', snippet: l => json({ context_servers: { rea: { source: 'custom', command: l.command, args: l.args } } }) },
|
|
30
|
+
continue: { file: '.continue/mcpServers/reverseport.yaml', snippet: l => `name: ReversePort\nversion: 1.0.0\nschema: v1\nmcpServers:\n - name: rea\n command: ${l.command}\n args:\n${l.args.map(a => ` - ${JSON.stringify(a)}`).join('\n')}` },
|
|
31
|
+
goose: { file: '~/.config/goose/config.yaml', snippet: l => `extensions:\n rea:\n type: stdio\n name: rea\n cmd: ${l.command}\n args: ${JSON.stringify(l.args)}\n enabled: true\n timeout: 600` },
|
|
32
|
+
'lm-studio': { file: 'LM Studio mcp.json', snippet: l => json({ mcpServers: { rea: l } }) },
|
|
33
|
+
'mcp-http': { file: 'any client that takes an MCP URL (n8n, LangChain MultiServerMCPClient, Vercel AI SDK, Open WebUI via mcpo…)', snippet: () => 'reverseport serve\n# then connect to: http://127.0.0.1:32147/mcp (set REVERSEPORT_TOKEN to require a bearer token)' },
|
|
34
|
+
openai: { file: 'OpenAI Chat Completions / Responses, and OpenAI-compatible servers (vLLM, Ollama, LM Studio, llama.cpp)', snippet: () => 'reverseport serve\ncurl -s "http://127.0.0.1:32147/api/agent/tools?format=openai-strict" # tools=… (format=responses for the Responses API)\n# run a call: POST http://127.0.0.1:32147/api/agent/call {"name": "...", "arguments": {...}}' },
|
|
35
|
+
anthropic: { file: 'Anthropic Messages API tool use', snippet: () => 'reverseport serve\ncurl -s "http://127.0.0.1:32147/api/agent/tools?format=anthropic" # tools=…\n# run a call: POST http://127.0.0.1:32147/api/agent/call {"name": "...", "arguments": {...}}' },
|
|
36
|
+
gemini: { file: 'Gemini API function calling', snippet: () => 'reverseport serve\ncurl -s "http://127.0.0.1:32147/api/agent/tools?format=gemini" # tools=…\n# run a call: POST http://127.0.0.1:32147/api/agent/call {"name": "...", "arguments": {...}}' },
|
|
37
|
+
openapi: { file: 'LangChain/LlamaIndex OpenAPI tools, Semantic Kernel, CrewAI, AutoGen, n8n HTTP; GPT Actions via a tunnel', snippet: () => 'reverseport serve\n# OpenAPI 3.1: http://127.0.0.1:32147/api/openapi.json (each tool is POST /api/agent/tools/<name>)\n# GPT Actions and other hosted agents need a public HTTPS URL: set REVERSEPORT_TOKEN, REVERSEPORT_HOST=0.0.0.0 and\n# REVERSEPORT_ALLOWED_HOSTS=<tunnel host>, then expose the port with a tunnel of your choice.' },
|
|
38
|
+
shell: { file: 'agents that can only run commands', snippet: () => 'reverseport help # what exists\nreverseport describe re_scan # one tool\'s schema\nreverseport scan ./Game --compact # JSON on stdout, errors as JSON on stderr\nreverseport re_scan --args \'{"path":"./Game"}\'\necho \'{"path":"./Game"}\' | reverseport re_scan --request -' },
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export function connect({ client, mode } = {}) {
|
|
42
|
+
const how = mode === 'npx' || mode === 'local' ? mode : 'npx';
|
|
43
|
+
const l = launch(how);
|
|
44
|
+
if (!client) {
|
|
45
|
+
return {
|
|
46
|
+
clients: Object.fromEntries(Object.entries(CLIENTS).map(([k, v]) => [k, v.file])),
|
|
47
|
+
easiest: 'npx -y reverseport@latest setup (finds and configures installed agents for you)',
|
|
48
|
+
next: 'reverseport connect <client> (add --mode local to point at this copy instead of npx)',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const key = String(client).toLowerCase().replace(/_/g, '-');
|
|
52
|
+
const c = CLIENTS[key];
|
|
53
|
+
if (!c) {
|
|
54
|
+
const near = closest(key, Object.keys(CLIENTS), 3);
|
|
55
|
+
throw new RPError('INVALID_ARGUMENT', `Unknown client "${client}".${near ? ` Did you mean "${near}"?` : ''} Clients: ${Object.keys(CLIENTS).join(', ')}.`);
|
|
56
|
+
}
|
|
57
|
+
return { client: key, where: c.file, snippet: c.snippet(how === 'local' ? launch('local') : l), serverName: 'rea — the same name setup uses, so running both never registers the server twice', tools: 'ReversePort lists its own tools plus the engine core; REVERSEPORT_TOOLS=all lists every engine tool, REVERSEPORT_TOOLS=port only ReversePort\'s.' };
|
|
58
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Coordinate-system conversion between engines: positions, rotations (quaternions), scales, Euler angles
|
|
2
|
+
// in each engine's own convention, and camera field of view. Every system is an orthonormal axis map to
|
|
3
|
+
// Godot's frame (right-handed, Y up, -Z forward, meters) plus a unit scale.
|
|
4
|
+
import { RPError } from './util.mjs';
|
|
5
|
+
import { matToQuat } from './scene.mjs';
|
|
6
|
+
|
|
7
|
+
const I = [[1, 0, 0], [0, 1, 0], [0, 0, 1]];
|
|
8
|
+
/** Rows map Godot coordinates into the system: p_sys = M · p_godot × scale. */
|
|
9
|
+
export const SYSTEMS = {
|
|
10
|
+
godot: { M: I, scale: 1, label: 'Godot (right-handed, Y up, -Z forward, m)' },
|
|
11
|
+
'godot-csharp': { M: I, scale: 1, label: 'Godot C# (same as Godot)' },
|
|
12
|
+
threejs: { M: I, scale: 1, label: 'three.js (right-handed, Y up, -Z camera forward, m)' },
|
|
13
|
+
gltf: { M: I, scale: 1, label: 'glTF 2.0 (right-handed, Y up, m; assets face +Z)' },
|
|
14
|
+
bevy: { M: I, scale: 1, label: 'Bevy (right-handed, Y up, -Z forward, m)' },
|
|
15
|
+
unity: { M: [[1, 0, 0], [0, 1, 0], [0, 0, -1]], scale: 1, label: 'Unity (left-handed, Y up, +Z forward, m) — Z mirrored' },
|
|
16
|
+
'unity-xmirror': { M: [[-1, 0, 0], [0, 1, 0], [0, 0, 1]], scale: 1, label: 'Unity, X mirrored (glTF-importer style: model fronts stay on +Z)' },
|
|
17
|
+
unreal: { M: [[0, 0, -1], [1, 0, 0], [0, 1, 0]], scale: 100, label: 'Unreal (left-handed, Z up, X forward, Y right, cm)' },
|
|
18
|
+
blender: { M: [[1, 0, 0], [0, 0, -1], [0, 1, 0]], scale: 1, label: 'Blender (right-handed, Z up, m) via the glTF axis rule' },
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const T = m => m[0].map((_, c) => m.map(r => r[c]));
|
|
22
|
+
const mul = (a, b) => a.map(r => b[0].map((_, c) => r.reduce((s, v, k) => s + v * b[k][c], 0)));
|
|
23
|
+
const mulVec = (m, v) => m.map(r => r[0] * v[0] + r[1] * v[1] + r[2] * v[2]);
|
|
24
|
+
const clean = x => { const r = Math.round(x * 1e6) / 1e6; return Object.is(r, -0) ? 0 : r; };
|
|
25
|
+
|
|
26
|
+
export function quatToMat([x, y, z, w]) {
|
|
27
|
+
const n = Math.hypot(x, y, z, w) || 1;
|
|
28
|
+
x /= n; y /= n; z /= n; w /= n;
|
|
29
|
+
return [
|
|
30
|
+
[1 - 2 * (y * y + z * z), 2 * (x * y - z * w), 2 * (x * z + y * w)],
|
|
31
|
+
[2 * (x * y + z * w), 1 - 2 * (x * x + z * z), 2 * (y * z - x * w)],
|
|
32
|
+
[2 * (x * z - y * w), 2 * (y * z + x * w), 1 - 2 * (x * x + y * y)],
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const rad = d => (d * Math.PI) / 180, deg = r => (r * 180) / Math.PI;
|
|
37
|
+
const clamp1 = v => Math.max(-1, Math.min(1, v));
|
|
38
|
+
const Rx = a => [[1, 0, 0], [0, Math.cos(a), -Math.sin(a)], [0, Math.sin(a), Math.cos(a)]];
|
|
39
|
+
const Ry = a => [[Math.cos(a), 0, Math.sin(a)], [0, 1, 0], [-Math.sin(a), 0, Math.cos(a)]];
|
|
40
|
+
const Rz = a => [[Math.cos(a), -Math.sin(a), 0], [Math.sin(a), Math.cos(a), 0], [0, 0, 1]];
|
|
41
|
+
|
|
42
|
+
/** R = Ry·Rx·Rz (Godot EULER_ORDER_YXZ; Unity applies Z, X, Y) → [x, y, z] radians. */
|
|
43
|
+
export function matToEulerYXZ(m) {
|
|
44
|
+
const b = Math.asin(clamp1(-m[1][2]));
|
|
45
|
+
if (Math.abs(m[1][2]) < 0.9999999) return [b, Math.atan2(m[0][2], m[2][2]), Math.atan2(m[1][0], m[1][1])];
|
|
46
|
+
return [b, Math.atan2(-m[2][0], m[0][0]), 0];
|
|
47
|
+
}
|
|
48
|
+
/** R = Rx·Ry·Rz (three.js 'XYZ') → [x, y, z] radians. */
|
|
49
|
+
export function matToEulerXYZ(m) {
|
|
50
|
+
const y = Math.asin(clamp1(m[0][2]));
|
|
51
|
+
if (Math.abs(m[0][2]) < 0.9999999) return [Math.atan2(-m[1][2], m[2][2]), y, Math.atan2(-m[0][1], m[0][0])];
|
|
52
|
+
return [Math.atan2(m[2][1], m[1][1]), y, 0];
|
|
53
|
+
}
|
|
54
|
+
export const eulerYXZToMat = ([x, y, z]) => mul(mul(Ry(y), Rx(x)), Rz(z));
|
|
55
|
+
export const eulerXYZToMat = ([x, y, z]) => mul(mul(Rx(x), Ry(y)), Rz(z));
|
|
56
|
+
|
|
57
|
+
function system(name) {
|
|
58
|
+
const s = SYSTEMS[String(name ?? '').toLowerCase()];
|
|
59
|
+
if (!s) throw new RPError('INVALID_ARGUMENT', `Unknown coordinate system "${name}". Use one of: ${Object.keys(SYSTEMS).join(', ')}.`);
|
|
60
|
+
return s;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Axis transform from system A to system B (orthonormal) and unit factor. */
|
|
64
|
+
export function transformBetween(from, to) {
|
|
65
|
+
const a = system(from), b = system(to);
|
|
66
|
+
return { T: mul(b.M, T(a.M)), factor: b.scale / a.scale };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function eulerFor(sys, R) {
|
|
70
|
+
if (['godot', 'godot-csharp', 'bevy'].includes(sys)) { const e = matToEulerYXZ(R); return { order: 'YXZ', unit: 'degrees (rotation_degrees); rotation uses radians', degrees: e.map(deg).map(clean), radians: e.map(clean) }; }
|
|
71
|
+
if (sys.startsWith('unity')) { const e = matToEulerYXZ(R); return { order: 'Z, X, Y (Unity)', unit: 'degrees (localEulerAngles)', degrees: e.map(deg).map(clean) }; }
|
|
72
|
+
if (sys === 'threejs') { const e = matToEulerXYZ(R); return { order: "XYZ (three.js default; for YXZ set rotation.order = 'YXZ')", unit: 'radians', radians: e.map(clean), yxz: matToEulerYXZ(R).map(clean) }; }
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Convert transforms between engines. Inputs in the source system: position [x,y,z], rotation as a
|
|
78
|
+
* quaternion [x,y,z,w] or euler degrees in the source engine's convention, scale [x,y,z], fov in degrees.
|
|
79
|
+
*/
|
|
80
|
+
export function convert({ from, to, position, rotation, euler, scale, fov, aspect = 16 / 9 } = {}) {
|
|
81
|
+
const { T: M, factor } = transformBetween(from, to);
|
|
82
|
+
const out = { from: system(from).label, to: system(to).label, axisMatrix: M.map(r => r.map(clean)), unitFactor: factor };
|
|
83
|
+
const vec3 = (v, what) => { if (!Array.isArray(v) || v.length !== 3 || v.some(n => typeof n !== 'number' || !Number.isFinite(n))) throw new RPError('INVALID_ARGUMENT', `${what} must be [x, y, z] numbers.`); return v; };
|
|
84
|
+
if (position) out.position = mulVec(M, vec3(position, 'position')).map(v => clean(v * factor));
|
|
85
|
+
let R = null;
|
|
86
|
+
const src = String(from).toLowerCase();
|
|
87
|
+
if (rotation) {
|
|
88
|
+
if (!Array.isArray(rotation) || rotation.length !== 4) throw new RPError('INVALID_ARGUMENT', 'rotation must be a quaternion [x, y, z, w].');
|
|
89
|
+
R = quatToMat(rotation);
|
|
90
|
+
} else if (euler) {
|
|
91
|
+
const e = vec3(euler, 'euler').map(rad);
|
|
92
|
+
if (['godot', 'godot-csharp', 'bevy'].includes(src) || src.startsWith('unity')) R = eulerYXZToMat(e);
|
|
93
|
+
else if (src === 'threejs') R = eulerXYZToMat(e);
|
|
94
|
+
else throw new RPError('INVALID_ARGUMENT', `Give a quaternion for ${from}; euler input is supported for godot, unity and threejs.`);
|
|
95
|
+
}
|
|
96
|
+
if (R) {
|
|
97
|
+
const R2 = mul(mul(M, R), T(M));
|
|
98
|
+
out.rotation = { quaternion: matToQuat(R2).map(clean), ...(eulerFor(String(to).toLowerCase(), R2) ? { euler: eulerFor(String(to).toLowerCase(), R2) } : {}) };
|
|
99
|
+
}
|
|
100
|
+
if (scale) out.scale = M.map(r => clean(r.reduce((s, v, k) => s + Math.abs(v) * vec3(scale, 'scale')[k], 0)));
|
|
101
|
+
if (fov != null) {
|
|
102
|
+
const verticalIn = !String(from).toLowerCase().startsWith('unreal');
|
|
103
|
+
const verticalOut = !String(to).toLowerCase().startsWith('unreal');
|
|
104
|
+
const v = verticalIn ? fov : deg(2 * Math.atan(Math.tan(rad(fov) / 2) / aspect));
|
|
105
|
+
out.fov = { degrees: clean(verticalOut ? v : deg(2 * Math.atan(Math.tan(rad(v) / 2) * aspect))), axis: verticalOut ? 'vertical' : 'horizontal', aspect };
|
|
106
|
+
}
|
|
107
|
+
out.notes = [
|
|
108
|
+
'Positions and rotations stay visually identical; the axis matrix shows where each source axis goes.',
|
|
109
|
+
...(Math.abs(det(M) + 1) < 1e-9 ? ['Handedness changes (mirror): meshes imported separately keep their own importer orientation — if a model looks backwards, rotate that node 180° about the up axis.'] : []),
|
|
110
|
+
...(factor !== 1 ? [`Distances scale ×${factor} (speeds, forces and ranges in code too).`] : []),
|
|
111
|
+
];
|
|
112
|
+
return out;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const det = m => m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1]) - m[0][1] * (m[1][0] * m[2][2] - m[1][2] * m[2][0]) + m[0][2] * (m[1][0] * m[2][1] - m[1][1] * m[2][0]);
|
|
116
|
+
|
|
117
|
+
/** Convert a neutral scene tree (from re_scene) into another system, in place on a copy. */
|
|
118
|
+
export function convertTree(node, from, to) {
|
|
119
|
+
const { T: M, factor } = transformBetween(from, to);
|
|
120
|
+
const visit = n => {
|
|
121
|
+
const copy = { ...n };
|
|
122
|
+
if (n.transform) {
|
|
123
|
+
const R = quatToMat(n.transform.rotation ?? [0, 0, 0, 1]);
|
|
124
|
+
copy.transform = {
|
|
125
|
+
position: mulVec(M, n.transform.position ?? [0, 0, 0]).map(v => clean(v * factor)),
|
|
126
|
+
rotation: matToQuat(mul(mul(M, R), T(M))).map(clean),
|
|
127
|
+
scale: M.map(r => clean(r.reduce((s, v, k) => s + Math.abs(v) * (n.transform.scale ?? [1, 1, 1])[k], 0))),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
copy.children = (n.children ?? []).map(visit);
|
|
131
|
+
return copy;
|
|
132
|
+
};
|
|
133
|
+
return visit(node);
|
|
134
|
+
}
|