152 references to AgentCommandStrings
aspire (87)
Agents\AgentConfiguration.cs (1)
254=> new(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.ConfigurationWriteRefused, path));
Agents\AspireSkills\AspireSkillsRemoteConfiguration.cs (1)
313=> new(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ExistingConfigurationConflict, key));
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (1)
55public string DisplayName { get; } = AgentCommandStrings.Environment_ClaudeCode;
Agents\Copilot\CopilotAgentClient.cs (1)
44public string DisplayName { get; } = AgentCommandStrings.Environment_Copilot;
Agents\Hooks\TelemetryHookInstaller.cs (1)
112throw new IOException(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.TelemetryHookScriptUpdateFailed, path, ex.Message), ex);
Agents\McpConfigFileHelper.cs (2)
65string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.MalformedConfigFileError, configFilePath), ex); 112AgentCommandStrings.McpServerContainerMustBeJsonObject, serverContainerKey, configFilePath));
Agents\OpenCode\OpenCodeAgentClient.cs (2)
44public string DisplayName { get; } = AgentCommandStrings.Environment_OpenCode; 146AgentCommandStrings.McpServerContainerMustBeJsonObject, "mcp.servers", path));
Agents\Playwright\PlaywrightCliInstaller.cs (10)
132AgentCommandStrings.PlaywrightCliInstaller_InstallingStatus, 159return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_InvalidVersionOverride, VersionOverrideKey, versionOverride), []); 175return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToResolvePackage, NpmPackageInfo.FormatPackageSpecifier(PackageName, effectiveRange)), []); 224return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToDownload, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version)), []); 253return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.Outcome), []); 269return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToInstallGlobally, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version)), []); 307return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, []); 362return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, []); 429? (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles, installedSkillDirectories) 430: (PlaywrightInstallStatus.InstalledWithWarnings, AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings, installedSkillDirectories);
Agents\SkillDefinition.cs (2)
21AgentCommandStrings.SkillDescription_PlaywrightCli, 30AgentCommandStrings.SkillDescription_DotnetInspect,
Commands\AgentCommand.cs (1)
21: base(AgentTelemetryProtocol.AgentCommandName, AgentCommandStrings.Description, services)
Commands\AgentInitCommand.cs (51)
54: base("init", AgentCommandStrings.InitCommand_Description, services) 79Description = AgentCommandStrings.InitCommand_WorkspaceRootOptionDescription 93Description = AgentCommandStrings.InitCommand_McpOptionDescription, 104Description = AgentCommandStrings.InitCommand_RemoveSkillCopiesOptionDescription, 114Description = string.Format(CultureInfo.InvariantCulture, AgentCommandStrings.InitCommand_SkillsOptionDescription, 131result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidSkills, 150Description = string.Format(CultureInfo.InvariantCulture, AgentCommandStrings.InitCommand_EnvironmentsOptionDescription, 166result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 185Description = AgentCommandStrings.InitCommand_ScopeOptionDescription, 196result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidScope, result.Tokens[0].Value)); 343InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 373AgentCommandStrings.InitCommand_SelectAgentsPrompt, 386InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_NoConfigurationSelected); 451InteractionService.DisplayMessage(KnownEmojis.Information, AgentCommandStrings.InitCommand_SkillSourcesExplanation); 466AgentCommandStrings.InitCommand_SelectSkills, 469? AgentCommandStrings.InitCommand_AspireSkillChoice 497AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, 512InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_NoConfigurationSelected); 519AgentCommandStrings.InitCommand_SelectScopePrompt, 522? AgentCommandStrings.InitCommand_ProjectScope 523: AgentCommandStrings.InitCommand_GlobalScope, 563AgentCommandStrings.InitCommand_RemovedSkillCopies, string.Join(", ", removedSkillCopies))); 623InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, AgentCommandStrings.InitCommand_InstalledPlaywrightCli); 634InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_PlaywrightCliSkipped); 668AgentCommandStrings.InitCommand_McpConfigurationDescription, firstTarget.Client.DisplayName, targets.Key); 682string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigUpdate_Description, client.DisplayName))); 688AgentCommandStrings.InitCommand_McpConfigurationDescription, client.DisplayName, configFilePath))); 713string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.SkippedMalformedConfigFile, description)); 741InteractionService.DisplayMessage(KnownEmojis.PoliceCarLight, AgentCommandStrings.ConfigurationCompletedWithErrors); 886string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHooksInstalled, string.Join(", ", configuredNames))); 894TelemetryHookStatus.MalformedConfig => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedMalformedConfig, clientName), 895TelemetryHookStatus.UnexpectedConfigShape => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedUnexpectedShape, clientName), 896TelemetryHookStatus.WriteFailed => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookWriteFailed, clientName), 1002string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedToInstallSkill, skill.Name, fullSkillDirectoryPath, ex.Message)); 1014var lines = new List<string> { AgentCommandStrings.InitCommand_InstalledSkillsSummary }; 1015lines.Add($" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, 1025locations.Add(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, 1030lines.Add($" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, 1036message += $"{Environment.NewLine} [dim]{AgentCommandStrings.InitCommand_SharedLocationNotice.EscapeMarkup()}[/]"; 1057var target = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfigurationTarget, 1062InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedTarget, 1070string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, 1073var message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfiguredTargets, 1120var kept = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_KeptSkillCopies, 1126? [$"[dim]{AgentCommandStrings.InitCommand_SkillCopiesRequirePlugin.EscapeMarkup()}[/]"] 1153$"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound.EscapeMarkup()}[/]", 1157? AgentCommandStrings.InitCommand_DeleteSkillCopyPrompt 1158: string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_DeleteSkillCopiesPrompt, skillDirectories.Count); 1173failures.Add(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed, 1174displayPath, AgentCommandStrings.InitCommand_SkillCopyBehindLink)); 1183failures.Add(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed,
Commands\AgentMcpCommand.cs (1)
71: base("mcp", AgentCommandStrings.McpCommand_Description, services)
Commands\AgentTelemetryCommand.cs (8)
59Description = AgentCommandStrings.AgentTelemetryCommand_EventTypeDescription 64Description = AgentCommandStrings.AgentTelemetryCommand_ClientNameDescription 69Description = AgentCommandStrings.AgentTelemetryCommand_SessionIdDescription 74Description = AgentCommandStrings.AgentTelemetryCommand_SkillNameDescription 79Description = AgentCommandStrings.AgentTelemetryCommand_ToolNameDescription 84Description = AgentCommandStrings.AgentTelemetryCommand_FileReferenceDescription 89Description = AgentCommandStrings.AgentTelemetryCommand_TimestampDescription 94: base(AgentTelemetryProtocol.TelemetryCommandName, AgentCommandStrings.AgentTelemetryCommand_Description, services)
Resources\AgentCommandStrings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.AgentCommandStrings", typeof(AgentCommandStrings).Assembly);
Utils\ConfigurationHelper.cs (1)
585=> new(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.ConfigurationWriteRefused, path));
Utils\EnvironmentChecker\AspireSkillsCheck.cs (1)
40AgentCommandStrings.InitCommand_LocationWithAgents, copy.DisplayPath, string.Join(", ", copy.Owners)));
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (2)
70Message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigWarning, location.AgentName), 71Fix = AgentCommandStrings.DeprecatedConfigFix
Aspire.Cli.Tests (65)
Agents\PlaywrightCliInstallerTests.cs (3)
152? AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings 153: AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles, message); 194Assert.Equal(AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, message);
Commands\AgentInitClientSelectionTests.cs (24)
95call => call.PromptText == AgentCommandStrings.InitCommand_SelectAgentsPrompt); 256AgentCommandStrings.InitCommand_InvalidEnvironments, "copilot", "opencode", "all", "none"), 291Assert.Equal(AgentCommandStrings.InitCommand_SelectAgentsPrompt, prompt); 333Assert.Equal(AgentCommandStrings.InitCommand_SelectAgentsPrompt, prompt); 390message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal)); 403message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal))); 438Assert.Equal(AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings, warning.Message); 443message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal)); 471if (prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt) 475Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 478Assert.Equal($"aspire — {AgentCommandStrings.InitCommand_AspireSkillChoice}", formatter("aspire")); 484return prompt == AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt; 514[AgentCommandStrings.InitCommand_SelectAgentsPrompt, AgentCommandStrings.InitCommand_SelectSkills, 515AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, AgentCommandStrings.InitCommand_SelectScopePrompt], 540if (prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt) 544Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 548ConfirmCallback = (prompt, _) => prompt == AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, 584return prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt 742string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_McpConfigurationDescription, displayName, configPath), 941string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_McpConfigurationDescription, 942AgentCommandStrings.Environment_OpenCode, jsoncPath), 1638message.Message == string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemovedSkillCopies, "~/.agents/skills/aspire"));
Commands\AgentInitCommandTests.cs (28)
266Assert.Equal([AgentCommandStrings.InitCommand_SkillSourcesExplanation, $"[yellow]{SharedCommandStrings.SourceTrustWarning}[/]"], 303Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 319[$"{CommonAgentApplicators.AspireSkillName} — {AgentCommandStrings.InitCommand_AspireSkillChoice}", 320$"{SkillDefinition.PlaywrightCli.Name} — {AgentCommandStrings.SkillDescription_PlaywrightCli}", 321$"{SkillDefinition.DotnetInspect.Name} — {AgentCommandStrings.SkillDescription_DotnetInspect}"], 652Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 732TelemetryHookStatus.MalformedConfig => AgentCommandStrings.InitCommand_TelemetryHookSkippedMalformedConfig, 733TelemetryHookStatus.UnexpectedConfigShape => AgentCommandStrings.InitCommand_TelemetryHookSkippedUnexpectedShape, 734TelemetryHookStatus.WriteFailed => AgentCommandStrings.InitCommand_TelemetryHookWriteFailed, 818Assert.Equal(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfiguredTargets, 819string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, 860Assert.Equal(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfiguredTargets, 942var reason = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ExistingConfigurationConflict, 944Assert.Equal(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedTarget, 1021message.Message == string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemovedSkillCopies, ".opencode/skill/aspire")); 1088string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_KeptSkillCopies, ".agents/skills/aspire"), 1089$"[dim]{AgentCommandStrings.InitCommand_SkillCopiesRequirePlugin}[/]" 1093message.Message.StartsWith(AgentCommandStrings.InitCommand_KeptSkillCopies.Split("{0}")[0], StringComparison.Ordinal)) 1166Assert.Equal(prompted ? [new BooleanPromptCall(AgentCommandStrings.InitCommand_DeleteSkillCopyPrompt, false)] : [], 1168Assert.Equal(prompted ? [string.Join(Environment.NewLine, [$"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound}[/]", " .agents/skills/aspire"])] : [], 1171message.Message.StartsWith($"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound}", StringComparison.Ordinal)) 1174var kept = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_KeptSkillCopies, ".agents/skills/aspire"); 1177message.Message.StartsWith(AgentCommandStrings.InitCommand_KeptSkillCopies.Split("{0}")[0], StringComparison.Ordinal)) 1261string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed, 1262".agents/skills/aspire", AgentCommandStrings.InitCommand_SkillCopyBehindLink), 1319string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed, ".agents/skills/aspire", string.Empty), 1322message.Message == string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemovedSkillCopies, ".agents/skills/aspire-deployment")); 1356AgentCommandStrings.McpServerContainerMustBeJsonObject, "mcp.servers", path), Assert.Single(interaction.DisplayedErrors));
Commands\NewCommandTests.cs (2)
3439if (prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt) 3444Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt);
Interaction\ConsoleInteractionServiceTests.cs (5)
1558var message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_SkillSources, 2692new("copilot", AgentCommandStrings.Environment_Copilot), 2693new("claude", AgentCommandStrings.Environment_ClaudeCode), 2694new("opencode", AgentCommandStrings.Environment_OpenCode)]; 2697AgentCommandStrings.InitCommand_SelectAgentsPrompt, clients,
Utils\AspireSkillsCheckTests.cs (3)
37{string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, ".claude/skills/aspire-init", "claude")} 38{string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, "~/.agents/skills/aspire", "copilot, opencode")} 57string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, ".agents/skills/aspire", "copilot, opencode"),