feat: allow forced cleanup after completed automation evidence

This commit is contained in:
codex
2026-08-04 07:22:35 +03:00
parent 9209937b85
commit b88e09afd4
6 changed files with 65 additions and 15 deletions
@@ -16,6 +16,7 @@ public sealed class StartupScriptBuilder : IStartupScriptBuilder
{
public string BuildNetloadScript(string root, string entry)
{ var full = Path.GetFullPath(Path.Combine(root, entry)); if (!full.StartsWith(Path.GetFullPath(root) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase) || !File.Exists(full)) throw new InvalidOperationException("UNTRUSTED_ENTRY_PATH"); return $"_.NETLOAD\n\"{full.Replace("\"", "\\\"")}\"\n"; }
public string BuildAutomationScript(string root, string entry) => BuildNetloadScript(root, entry) + "PHP_REC_AUTOMATION_START\n";
}
public sealed class DryRunAutodeskProcessLauncher : IAutodeskProcessLauncher
{