chore(unity): 固定Unity CLI Loop本地包并移除UnitySkills依赖
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
|
||||
namespace io.github.hatayama.uLoopMCP
|
||||
{
|
||||
/// <summary>
|
||||
/// Execution Context
|
||||
///
|
||||
/// Related Class: CommandRunner
|
||||
/// </summary>
|
||||
public class ExecutionContext
|
||||
{
|
||||
/// <summary>Compiled Assembly</summary>
|
||||
public Assembly CompiledAssembly { get; set; }
|
||||
|
||||
/// <summary>Parameters</summary>
|
||||
public Dictionary<string, object> Parameters { get; set; } = new();
|
||||
|
||||
/// <summary>Cancellation Token</summary>
|
||||
public CancellationToken CancellationToken { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ddba0adf15c4f453cbb7495d77cf2e65
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d72f5e24cb7b420db4e9c2a802158d7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user