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,36 @@
using System.Collections.Generic;
namespace io.github.hatayama.uLoopMCP
{
/// <summary>
/// Security management utility for ExecuteDynamicCodeTool
/// Related Classes: DynamicCodeSecurityLevel, AssemblyReferencePolicy, RoslynCompiler
/// </summary>
public static class DynamicCodeSecurityManager
{
/// <summary>
/// Check if code execution is possible at the specified security level
/// </summary>
public static bool CanExecute(DynamicCodeSecurityLevel level)
{
switch (level)
{
case DynamicCodeSecurityLevel.Restricted:
case DynamicCodeSecurityLevel.FullAccess:
// Level 1, 2: Execution permitted
return true;
default:
return false;
}
}
/// <summary>
/// Retrieve list of allowed assemblies based on the security level
/// </summary>
public static IReadOnlyList<string> GetAllowedAssemblies(DynamicCodeSecurityLevel level)
{
return AssemblyReferencePolicy.GetAssemblies(level);
}
}
}