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,63 @@
using System;
using System.Collections.Generic;
namespace io.github.hatayama.uLoopMCP
{
/// <summary>
/// Dynamic Code Execution Result
///
/// Related Classes: DynamicCodeExecutor, CommandRunner
/// </summary>
public class ExecutionResult
{
/// <summary>Execution Success</summary>
public bool Success { get; set; }
/// <summary>Execution Result</summary>
public object Result { get; set; }
/// <summary>Error Message</summary>
public string ErrorMessage { get; set; }
/// <summary>Exception</summary>
public Exception Exception { get; set; }
/// <summary>Execution Time</summary>
public TimeSpan ExecutionTime { get; set; }
/// <summary>Logs</summary>
public List<string> Logs { get; set; } = new();
/// <summary>Execution Statistics</summary>
public ExecutionStatistics Statistics { get; set; }
/// <summary>
/// Structured compilation errors when compilation failed.
/// Preserved to enable rich diagnostics formatting at the tool layer.
/// </summary>
public List<CompilationError> CompilationErrors { get; set; } = new();
/// <summary>
/// Code that was actually compiled after wrapping/using hoist.
/// Useful for debugging reported line/column numbers.
/// </summary>
public string UpdatedCode { get; set; }
/// <summary>
/// Types that could not be auto-resolved because multiple namespace candidates were found.
/// Key: type name, Value: list of candidate namespaces.
/// </summary>
public Dictionary<string, List<string>> AmbiguousTypeCandidates { get; set; } = new();
/// <summary>
/// Populated on both success and failure paths;
/// without this the tool layer cannot emit performance hints about missing usings.
/// </summary>
public List<string> AutoInjectedNamespaces { get; set; } = new();
/// <summary>
/// Captures internal phase timings without forcing normal users to parse verbose logs.
/// </summary>
public List<string> Timings { get; set; } = new();
}
}