chore(unity): 固定Unity CLI Loop本地包并移除UnitySkills依赖

This commit is contained in:
Liubing\LB
2026-09-28 18:14:59 +08:00
parent 0eb43b2b40
commit c4ae02def9
952 changed files with 70137 additions and 11 deletions

View File

@@ -0,0 +1,42 @@
using System.Text.RegularExpressions;
namespace io.github.hatayama.uLoopMCP
{
public static class CompilationDiagnosticMessageParser
{
private static readonly Regex TypeNamePattern = new Regex(@"['""]([^'""]+)['""]", RegexOptions.Compiled);
public static string ExtractTypeNameFromMessage(string message)
{
if (message == null)
{
return null;
}
Match match = TypeNamePattern.Match(message);
if (!match.Success)
{
return null;
}
return NormalizeTypeName(match.Groups[1].Value);
}
private static string NormalizeTypeName(string rawName)
{
if (string.IsNullOrWhiteSpace(rawName))
{
return null;
}
string normalized = rawName.Trim();
int genericIndex = normalized.IndexOf('<');
if (genericIndex > 0)
{
normalized = normalized.Substring(0, genericIndex);
}
return normalized;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c2284b0ac895440efaea20245f59aec3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: