166 references to AgentCommandStrings
aspire (90)
Agents\AgentConfiguration.cs (1)
254=> new(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.ConfigurationWriteRefused, path));
Agents\AspireSkills\AspireSkillsRemoteConfiguration.cs (1)
353=> 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\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; 150AgentCommandStrings.McpServerContainerMustBeJsonObject, "mcp.servers", path));
Agents\Playwright\PlaywrightCliInstaller.cs (10)
134AgentCommandStrings.PlaywrightCliInstaller_InstallingStatus, 161return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_InvalidVersionOverride, VersionOverrideKey, versionOverride), []); 177return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToResolvePackage, NpmPackageInfo.FormatPackageSpecifier(PackageName, effectiveRange)), []); 226return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToDownload, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version)), []); 255return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.Outcome), []); 271return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToInstallGlobally, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version)), []); 309return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, []); 364return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, []); 431? (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles, installedSkillDirectories) 432: (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 (55)
56: base("init", AgentCommandStrings.InitCommand_Description, services) 82Description = AgentCommandStrings.InitCommand_WorkspaceRootOptionDescription 96Description = AgentCommandStrings.InitCommand_McpOptionDescription, 107Description = AgentCommandStrings.InitCommand_RemoveSkillCopiesOptionDescription, 117Description = string.Format(CultureInfo.InvariantCulture, AgentCommandStrings.InitCommand_SkillsOptionDescription, 134result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidSkills, 153Description = string.Format(CultureInfo.InvariantCulture, AgentCommandStrings.InitCommand_EnvironmentsOptionDescription, 169result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 188Description = AgentCommandStrings.InitCommand_ScopeOptionDescription, 199result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidScope, result.Tokens[0].Value)); 359InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 389AgentCommandStrings.InitCommand_SelectAgentsPrompt, 414InteractionService.DisplayMessage(KnownEmojis.PoliceCarLight, AgentCommandStrings.ConfigurationCompletedWithErrors); 418InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_NoConfigurationSelected); 479InteractionService.DisplayMessage(KnownEmojis.Information, AgentCommandStrings.InitCommand_SkillSourcesExplanation); 494AgentCommandStrings.InitCommand_SelectSkills, 497? AgentCommandStrings.InitCommand_AspireSkillChoice 525AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, 554InteractionService.DisplayMessage(KnownEmojis.PoliceCarLight, AgentCommandStrings.ConfigurationCompletedWithErrors); 561InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_NoConfigurationSelected); 569AgentCommandStrings.InitCommand_SelectScopePrompt, 572? AgentCommandStrings.InitCommand_ProjectScope 573: AgentCommandStrings.InitCommand_GlobalScope, 614? AgentCommandStrings.InitCommand_RemovedSkillCopy 615: string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemovedSkillCopies, removedSkillCopies.Count)); 673InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, AgentCommandStrings.InitCommand_InstalledPlaywrightCli); 684InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_PlaywrightCliSkipped); 718AgentCommandStrings.InitCommand_McpConfigurationDescription, firstTarget.Client.DisplayName, targets.Key); 732string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigUpdate_Description, client.DisplayName))); 738AgentCommandStrings.InitCommand_McpConfigurationDescription, client.DisplayName, configFilePath))); 763string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.SkippedMalformedConfigFile, description)); 799InteractionService.DisplayMessage(KnownEmojis.PoliceCarLight, AgentCommandStrings.ConfigurationCompletedWithErrors); 1040string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHooksInstalled, string.Join(", ", configuredNames))); 1048TelemetryHookStatus.MalformedConfig => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedMalformedConfig, clientName), 1049TelemetryHookStatus.UnexpectedConfigShape => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedUnexpectedShape, clientName), 1050TelemetryHookStatus.WriteFailed => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookWriteFailed, clientName), 1158string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedToInstallSkill, skill.Name, fullSkillDirectoryPath, ex.Message)); 1170var lines = new List<string> { AgentCommandStrings.InitCommand_InstalledSkillsSummary }; 1171lines.Add($" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, 1181locations.Add(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, 1186lines.Add($" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, 1192message += $"{Environment.NewLine} [dim]{AgentCommandStrings.InitCommand_SharedLocationNotice.EscapeMarkup()}[/]"; 1213var target = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfigurationTarget, 1218InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedTarget, 1226string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, 1229var message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfiguredTargets, 1287string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_SkillCopiesSettingsUnreadable, unreadable.Error), 1288AspireSkillsPluginState.Inactive when removalProvided => AgentCommandStrings.InitCommand_SkillCopiesRequirePlugin, 1305var kept = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_KeptSkillCopies, 1354$"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound.EscapeMarkup()}[/]", 1382? AgentCommandStrings.InitCommand_DeleteSkillCopyPrompt 1383: string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_DeleteSkillCopiesPrompt, skillDirectories.Count); 1398failures.Add(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed, 1399displayPath, AgentCommandStrings.InitCommand_SkillCopyBehindLink)); 1408failures.Add(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed,
Commands\AgentMcpCommand.cs (1)
71: base("mcp", AgentCommandStrings.McpCommand_Description, services)
Commands\AgentTelemetryCommand.cs (8)
61Description = AgentCommandStrings.AgentTelemetryCommand_EventTypeDescription 66Description = AgentCommandStrings.AgentTelemetryCommand_ClientNameDescription 71Description = AgentCommandStrings.AgentTelemetryCommand_SessionIdDescription 76Description = AgentCommandStrings.AgentTelemetryCommand_SkillNameDescription 81Description = AgentCommandStrings.AgentTelemetryCommand_ToolNameDescription 86Description = AgentCommandStrings.AgentTelemetryCommand_FileReferenceDescription 91Description = AgentCommandStrings.AgentTelemetryCommand_TimestampDescription 96: 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)
694=> 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 (76)
Agents\PlaywrightCliInstallerTests.cs (3)
152? AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings 153: AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles, message); 194Assert.Equal(AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, message);
Commands\AgentInitClientSelectionTests.cs (26)
97call => call.PromptText == AgentCommandStrings.InitCommand_SelectAgentsPrompt); 258AgentCommandStrings.InitCommand_InvalidEnvironments, "copilot", "opencode", "all", "none"), 293Assert.Equal(AgentCommandStrings.InitCommand_SelectAgentsPrompt, prompt); 335Assert.Equal(AgentCommandStrings.InitCommand_SelectAgentsPrompt, prompt); 392message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal)); 405message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal))); 440Assert.Equal(AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings, warning.Message); 445message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal)); 463AgentCommandStrings.InitCommand_SkillSourcesExplanation, 478if (prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt) 482Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 485Assert.Equal($"aspire — {AgentCommandStrings.InitCommand_AspireSkillChoice}", formatter("aspire")); 491return prompt == AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt; 521[AgentCommandStrings.InitCommand_SelectAgentsPrompt, AgentCommandStrings.InitCommand_SelectSkills, 522AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, AgentCommandStrings.InitCommand_SelectScopePrompt], 547if (prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt) 551Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 555ConfirmCallback = (prompt, _) => prompt == AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, 591return prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt 749string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_McpConfigurationDescription, displayName, configPath), 948string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_McpConfigurationDescription, 949AgentCommandStrings.Environment_OpenCode, jsoncPath), 1558Assert.Equal(!hookConfigured, subtleMessages.Contains(AgentCommandStrings.InitCommand_NoConfigurationSelected)); 1720message.Message == AgentCommandStrings.InitCommand_RemovedSkillCopy);
Commands\AgentInitCommandTests.cs (37)
533Assert.Equal([AgentCommandStrings.InitCommand_SkillSourcesExplanation, $"[yellow]{SharedCommandStrings.SourceTrustWarning}[/]"], 570Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 573AgentCommandStrings.InitCommand_SkillSourcesExplanation, 602Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 618[$"{CommonAgentApplicators.AspireSkillName} — {AgentCommandStrings.InitCommand_AspireSkillChoice}", 619$"{SkillDefinition.PlaywrightCli.Name} — {AgentCommandStrings.SkillDescription_PlaywrightCli}", 620$"{SkillDefinition.DotnetInspect.Name} — {AgentCommandStrings.SkillDescription_DotnetInspect}"], 951Assert.Equal(AgentCommandStrings.InitCommand_SelectSkills, prompt); 1031TelemetryHookStatus.MalformedConfig => AgentCommandStrings.InitCommand_TelemetryHookSkippedMalformedConfig, 1032TelemetryHookStatus.UnexpectedConfigShape => AgentCommandStrings.InitCommand_TelemetryHookSkippedUnexpectedShape, 1033TelemetryHookStatus.WriteFailed => AgentCommandStrings.InitCommand_TelemetryHookWriteFailed, 1113message => Assert.Equal(AgentCommandStrings.InitCommand_SkillSourcesExplanation, message.Message), 1118Assert.Equal(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfiguredTargets, 1119string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_LocationWithAgents, 1199message => Assert.Equal(AgentCommandStrings.InitCommand_SkillSourcesExplanation, message.Message), 1204Assert.Equal(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ConfiguredTargets, 1286var reason = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_ExistingConfigurationConflict, 1288Assert.Equal(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedTarget, 1365message.Message == AgentCommandStrings.InitCommand_RemovedSkillCopy); 1432string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_KeptSkillCopies, ".agents/skills/aspire"), 1433$"[dim]{AgentCommandStrings.InitCommand_SkillCopiesRequirePlugin}[/]" 1437message.Message.StartsWith(AgentCommandStrings.InitCommand_KeptSkillCopies.Split("{0}")[0], StringComparison.Ordinal)) 1511Assert.Equal(prompted ? [new BooleanPromptCall(AgentCommandStrings.InitCommand_DeleteSkillCopyPrompt, false)] : [], 1518$"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound}[/]", 1526message.Message.StartsWith($"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound}", StringComparison.Ordinal)) 1529var kept = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_KeptSkillCopies, ".agents/skills/aspire"); 1532message.Message.StartsWith(AgentCommandStrings.InitCommand_KeptSkillCopies.Split("{0}")[0], StringComparison.Ordinal)) 1655message.Message.StartsWith(AgentCommandStrings.InitCommand_KeptSkillCopies.Split("{0}")[0], StringComparison.Ordinal)); 1665Assert.Equal($"[dim]{AgentCommandStrings.InitCommand_SkillCopiesRequirePlugin}[/]", displayed); 1670$"[dim]{string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_SkillCopiesSettingsUnreadable, projectLocal)}: ", 1724string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed, 1725".agents/skills/aspire", AgentCommandStrings.InitCommand_SkillCopyBehindLink), 1763$"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound}[/]", 1768message.Message.StartsWith($"[yellow]{AgentCommandStrings.InitCommand_SkillCopiesFound}", StringComparison.Ordinal)).Message); 1823string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_RemoveSkillCopyFailed, ".agents/skills/aspire", string.Empty), 1826message.Message == AgentCommandStrings.InitCommand_RemovedSkillCopy); 1860AgentCommandStrings.McpServerContainerMustBeJsonObject, "mcp.servers", path), Assert.Single(interaction.DisplayedErrors));
Commands\NewCommandTests.cs (2)
3497if (prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt) 3502Assert.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"),