From 20c1064ca5ce705baba934cf77239b8db2ccdc56 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 8 Jun 2026 23:35:31 +0200 Subject: [PATCH] Remove unneeded CliPath prop --- .../Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj | 4 ++++ src/apps/Elsa.ModularServer.Web/appsettings.json | 3 +++ src/modules/Elsa.AI.Copilot/Options/CopilotOptions.cs | 6 ------ .../Elsa.AI.Copilot/ShellFeatures/CopilotAIFeature.cs | 7 ++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj b/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj index 0d6018899..49c5a7920 100644 --- a/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj +++ b/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj @@ -11,6 +11,10 @@ + + + + diff --git a/src/apps/Elsa.ModularServer.Web/appsettings.json b/src/apps/Elsa.ModularServer.Web/appsettings.json index dbd256650..85a8043e3 100644 --- a/src/apps/Elsa.ModularServer.Web/appsettings.json +++ b/src/apps/Elsa.ModularServer.Web/appsettings.json @@ -63,6 +63,9 @@ "WorkflowRuntimeDashboard": {}, "ConsoleLogsDashboard": {}, "StructuredLogsDashboard": {}, + "CopilotAI": {}, + "AI": {}, + "AIPersistence": {}, "SqliteAlterationsPersistence": { "ConnectionString": "Data Source=elsa_workflows.db;Cache=Shared" }, diff --git a/src/modules/Elsa.AI.Copilot/Options/CopilotOptions.cs b/src/modules/Elsa.AI.Copilot/Options/CopilotOptions.cs index 6909620af..4c4b5c00b 100644 --- a/src/modules/Elsa.AI.Copilot/Options/CopilotOptions.cs +++ b/src/modules/Elsa.AI.Copilot/Options/CopilotOptions.cs @@ -15,10 +15,4 @@ public class CopilotOptions public string? Model { get; set; } public string? ReasoningEffort { get; set; } public string? ProviderName { get; set; } = "copilot"; - - public string CliPath - { - get => RuntimePath ?? "copilot"; - set => RuntimePath = value; - } } diff --git a/src/modules/Elsa.AI.Copilot/ShellFeatures/CopilotAIFeature.cs b/src/modules/Elsa.AI.Copilot/ShellFeatures/CopilotAIFeature.cs index f5422ccf0..8398ce73d 100644 --- a/src/modules/Elsa.AI.Copilot/ShellFeatures/CopilotAIFeature.cs +++ b/src/modules/Elsa.AI.Copilot/ShellFeatures/CopilotAIFeature.cs @@ -16,10 +16,10 @@ namespace Elsa.AI.Copilot.ShellFeatures; public class CopilotAIFeature : IShellFeature { private static readonly CopilotOptions DefaultOptions = new(); - - public string CliPath { get; set; } = DefaultOptions.CliPath; + public string? RuntimePath { get; set; } = DefaultOptions.RuntimePath; public string? RuntimeUrl { get; set; } = DefaultOptions.RuntimeUrl; + public ICollection RuntimeArguments { get; set; } = []; public string? WorkingDirectory { get; set; } = DefaultOptions.WorkingDirectory; public string? BaseDirectory { get; set; } = DefaultOptions.BaseDirectory; public string? GitHubToken { get; set; } = DefaultOptions.GitHubToken; @@ -35,8 +35,9 @@ public class CopilotAIFeature : IShellFeature private void ConfigureOptions(CopilotOptions options) { - options.RuntimePath = RuntimePath ?? CliPath; + options.RuntimePath = RuntimePath; options.RuntimeUrl = RuntimeUrl; + options.RuntimeArguments = RuntimeArguments; options.WorkingDirectory = WorkingDirectory; options.BaseDirectory = BaseDirectory; options.GitHubToken = GitHubToken;