@attribute [Route(Routes.ASSISTANT_META_ASSISTANT)] @using AIStudio.Agents.AssistantAudit @using AIStudio.Tools.PluginSystem.Assistants.DataModel @inherits AssistantBaseCore @if (this.step is BuilderStep.DESCRIBE) {
@T("Advanced Options")
@foreach (var component in ASSISTANT_COMPONENT_OPTIONS) { @component.GetDisplayName() }
@this.HighPerformanceLLMInfo } else { @T("Assistant draft") @T("View accepted draft") @T("Change description") @if (this.step is BuilderStep.DONE) { @T("Edit draft") } @this.HighPerformanceLLMInfo } @code { private protected override RenderFragment? BelowSubmitContent => this.step is BuilderStep.DONE && !string.IsNullOrWhiteSpace(this.generatedLuaAssistant) ? @
@T("Generated Lua plugin")
@if (this.isCheckingPlugin) { @T("Validating the generated assistant...") } else if (this.IsInstallStepFailed(BuilderInstallStep.CHECK_PLUGIN)) { @T("The generated assistant could not be checked.") @if (!string.IsNullOrWhiteSpace(this.installFlowIssue)) { @string.Format(T("Issue: {0}"), this.installFlowIssue) } } else if (this.PluginCheckCompleted) { @string.Format(T("The generated assistant \"{0}\" is valid and runnable."), this.pluginCheckResult?.PluginName ?? T("Unknown assistant")) } else { @T("Validate generated assistant") } @if (this.isInstallingPlugin) { @T("Installing the assistant...") } else if (this.IsInstallStepFailed(BuilderInstallStep.INSTALL_ASSISTANT)) { @T("The assistant could not be installed.") @if (!string.IsNullOrWhiteSpace(this.installFlowIssue)) { @string.Format(T("Issue: {0}"), this.installFlowIssue) } } else if (this.PluginInstallCompleted) { @(this.pluginInstallResult?.ReplacedExisting is true ? string.Format(T("The assistant \"{0}\" was updated."), this.pluginInstallResult?.PluginName ?? T("Unknown assistant")) : string.Format(T("The assistant \"{0}\" was installed."), this.pluginInstallResult?.PluginName ?? T("Unknown assistant"))) } else { @T("Install assistant") } @if (this.isAuditingPlugin) { @T("Auditing assistants safety...") } else if (this.IsInstallStepFailed(BuilderInstallStep.SECURITY_CHECK)) { @T("The security audit could not be completed.") @if (!string.IsNullOrWhiteSpace(this.installFlowIssue)) { @string.Format(T("Issue: {0}"), this.installFlowIssue) } } else if (this.AuditCompleted) { @this.pluginAudit.Level.GetName(): @this.pluginAudit.Summary } else { @T("Start security audit") } @if (this.isEnablingPlugin) { @T("Enabling the assistant...") } else if (this.IsInstallStepFailed(BuilderInstallStep.ENABLE_ASSISTANT)) { @T("The assistant cannot be enabled.") @if (!string.IsNullOrWhiteSpace(this.installFlowIssue)) { @string.Format(T("Issue: {0}"), this.installFlowIssue) } } else if (this.EnableCompleted) { @T("The assistant is enabled.") } else { @if (this.RequiresActivationConfirmation) { @T("The security check is below your required level. Your settings allow activation after confirmation.") } @T("Enable assistant") } @if (this.CanOpenAssistant) { @T("Open assistant") } else { @T("Enable the assistant before opening it.") }
: null; private protected override RenderFragment AfterSubmitContent => @ ; }