Skip to content

Commit ddd94f7

Browse files
🧩Refactor: 移除不再使用的脚本执行接口和主程序分析结果类
1 parent f8509d2 commit ddd94f7

2 files changed

Lines changed: 1 addition & 57 deletions

File tree

KitX Core Contracts/KitX.Core.Contract/Workflow/IWorkflowService.cs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,6 @@ public interface IWorkflowManagementService
4343
Task<bool> CompileAndPersistWorkflowAsync(string workflowId);
4444
}
4545

46-
/// <summary>
47-
/// Script execution interface
48-
/// </summary>
49-
public interface IScriptExecutionService
50-
{
51-
/// <summary>
52-
/// Executes a workflow script
53-
/// </summary>
54-
Task<object?> ExecuteScriptAsync(string script, Dictionary<string, object>? parameters = null);
55-
56-
/// <summary>
57-
/// Executes workflow script codes with plugin dependencies
58-
/// </summary>
59-
Task<string?> ExecuteCodesAsync(
60-
string code,
61-
List<PluginInfo>? requiredPlugins = null,
62-
bool includeTimestamp = true,
63-
System.Threading.CancellationToken cancellationToken = default);
64-
65-
/// <summary>
66-
/// Executes KCS codes
67-
/// </summary>
68-
Task<string?> ExecuteKcsCodesAsync(
69-
string mainCode,
70-
List<HelperFunction> helperFunctions,
71-
List<VariableConstant> constants,
72-
List<PluginInfo>? requiredPlugins = null,
73-
bool includeTimestamp = true,
74-
System.Threading.CancellationToken cancellationToken = default);
75-
}
76-
7746
/// <summary>
7847
/// Plugin service interface for workflow constant and helper function handling
7948
/// </summary>

KitX Core Contracts/KitX.Core.Contract/Workflow/KcsFileFormat.cs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,6 @@ public class VariableConstant
152152
public string Type { get; set; } = "string";
153153
}
154154

155-
/// <summary>
156-
/// 主程序代码分析结果
157-
/// </summary>
158-
public class MainProgramAnalysisResult
159-
{
160-
/// <summary>
161-
/// 是否有效
162-
/// </summary>
163-
public bool IsValid { get; set; } = true;
164-
165-
/// <summary>
166-
/// 禁止原因
167-
/// </summary>
168-
public string ForbiddenReason { get; set; } = string.Empty;
169-
}
170-
171155
/// <summary>
172156
/// KCS文件服务接口 - 仅负责KCS文件的读写
173157
/// </summary>
@@ -189,14 +173,5 @@ public interface IKcsFileService
189173
}
190174

191175
/// <summary>
192-
/// 主程序代码分析器接口
176+
/// KCS 文件服务接口
193177
/// </summary>
194-
public interface IMainProgramAnalyzer
195-
{
196-
/// <summary>
197-
/// 分析主程序代码
198-
/// </summary>
199-
/// <param name="code">要分析的代码</param>
200-
/// <returns>分析结果</returns>
201-
MainProgramAnalysisResult Analyze(string code);
202-
}

0 commit comments

Comments
 (0)