@duytransipher/gitnexus 1.2.2 → 1.3.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/dist/cli/analyze.js +1 -1
- package/dist/cli/index.js +1 -0
- package/dist/cli/tool.d.ts +1 -0
- package/dist/cli/tool.js +3 -2
- package/dist/mcp/local/local-backend.js +4 -4
- package/dist/mcp/tools.js +108 -103
- package/dist/unreal/blueprint-ingestion.d.ts +8 -1
- package/dist/unreal/blueprint-ingestion.js +35 -3
- package/dist/unreal/bridge.d.ts +1 -1
- package/dist/unreal/bridge.js +66 -1
- package/dist/unreal/types.d.ts +4 -0
- package/package.json +1 -1
- package/vendor/GitNexusUnreal/Source/GitNexusUnreal/Private/GitNexusBlueprintAnalyzerCommandlet.cpp +930 -465
- package/vendor/GitNexusUnreal/Source/GitNexusUnreal/Public/GitNexusBlueprintAnalyzerCommandlet.h +25 -3
package/vendor/GitNexusUnreal/Source/GitNexusUnreal/Public/GitNexusBlueprintAnalyzerCommandlet.h
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
class UBlueprint;
|
|
7
7
|
class UEdGraph;
|
|
8
8
|
class UEdGraphNode;
|
|
9
|
+
class UEdGraphPin;
|
|
9
10
|
|
|
10
11
|
UCLASS()
|
|
11
12
|
class GITNEXUSUNREAL_API UGitNexusBlueprintAnalyzerCommandlet : public UCommandlet
|
|
@@ -18,7 +19,12 @@ public:
|
|
|
18
19
|
virtual int32 Main(const FString& Params) override;
|
|
19
20
|
|
|
20
21
|
private:
|
|
21
|
-
|
|
22
|
+
// ── SyncAssets ────────────────────────────────────────────────────────
|
|
23
|
+
int32 RunSyncAssets(const FString& OutputJsonPath, const FString& FilterJsonPath, bool bDeepMode);
|
|
24
|
+
int32 RunSyncAssetsMetadata(const FString& OutputJsonPath, const TArray<FAssetData>& Assets);
|
|
25
|
+
int32 RunSyncAssetsDeep(const FString& OutputJsonPath, const TArray<FAssetData>& Assets);
|
|
26
|
+
|
|
27
|
+
// ── Other operations ─────────────────────────────────────────────────
|
|
22
28
|
int32 RunFindNativeBlueprintReferences(
|
|
23
29
|
const FString& OutputJsonPath,
|
|
24
30
|
const FString& CandidatesJsonPath,
|
|
@@ -34,13 +40,29 @@ private:
|
|
|
34
40
|
int32 MaxDepth
|
|
35
41
|
);
|
|
36
42
|
|
|
43
|
+
// ── Helpers ──────────────────────────────────────────────────────────
|
|
44
|
+
|
|
45
|
+
struct FFilterPrefixes
|
|
46
|
+
{
|
|
47
|
+
TArray<FString> IncludePrefixes;
|
|
48
|
+
TArray<FString> ExcludePrefixes;
|
|
49
|
+
};
|
|
50
|
+
|
|
37
51
|
bool WriteJsonToFile(const FString& OutputJsonPath, const TSharedPtr<FJsonObject>& RootObject) const;
|
|
38
52
|
TArray<FString> LoadCandidateAssets(const FString& CandidatesJsonPath) const;
|
|
39
|
-
|
|
53
|
+
FFilterPrefixes LoadFilterPrefixes(const FString& FilterJsonPath) const;
|
|
54
|
+
TArray<FAssetData> GetAllBlueprintAssets(const FFilterPrefixes& Filters = FFilterPrefixes()) const;
|
|
40
55
|
UBlueprint* LoadBlueprintFromAssetPath(const FString& AssetPath) const;
|
|
41
56
|
void CollectBlueprintGraphs(UBlueprint* Blueprint, TArray<UEdGraph*>& OutGraphs) const;
|
|
42
57
|
bool IsTargetFunctionNode(const UEdGraphNode* Node, const FString& TargetSymbolKey, const FString& TargetClassName, const FString& TargetFunctionName) const;
|
|
43
58
|
TSharedPtr<FJsonObject> BuildReferenceJson(UBlueprint* Blueprint, const UEdGraph* Graph, const UEdGraphNode* Node) const;
|
|
44
|
-
TSharedPtr<FJsonObject> BuildChainNodeJson(
|
|
59
|
+
TSharedPtr<FJsonObject> BuildChainNodeJson(
|
|
60
|
+
const UEdGraph* Graph, const UEdGraphNode* Node, int32 Depth,
|
|
61
|
+
const FString& TraversedFromPinName = FString(),
|
|
62
|
+
const FGuid& TraversedFromNodeId = FGuid()) const;
|
|
63
|
+
TSharedPtr<FJsonObject> BuildPinJson(const UEdGraphPin* Pin) const;
|
|
64
|
+
TSharedPtr<FJsonObject> BuildPinsJson(const UEdGraphNode* Node) const;
|
|
65
|
+
void AnnotateNodeMetadata(TSharedPtr<FJsonObject>& NodeObj, const UEdGraphNode* Node) const;
|
|
66
|
+
void AnnotateNodeDetails(TSharedPtr<FJsonObject>& NodeObj, const UEdGraphNode* Node) const;
|
|
45
67
|
UEdGraphNode* FindNodeByGuid(UBlueprint* Blueprint, const FString& NodeGuid) const;
|
|
46
68
|
};
|