104 references to AgentCommandStrings
aspire (80)
Agents\AgentClient.cs (3)
24DisplayName = AgentCommandStrings.Environment_Copilot, 47DisplayName = AgentCommandStrings.Environment_ClaudeCode, 59DisplayName = AgentCommandStrings.Environment_OpenCode,
Agents\AspireSkills\AspireSkillsBundleProvider.cs (1)
459AgentCommandStrings.AspireSkillsInstaller_ArchiveHashVerificationFailed,
Agents\AspireSkills\AspireSkillsInstaller.cs (12)
61AgentCommandStrings.AspireSkillsInstaller_InstallingStatus, 153? embeddedResult.Message ?? AgentCommandStrings.AspireSkillsInstaller_GitHubUnavailable 156: AgentCommandStrings.AspireSkillsInstaller_GitHubUnavailable; 243AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, 266return AcquisitionResult.Failed(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.AspireSkillsInstaller_InvalidBundle, ex.Message)); 302AgentCommandStrings.AspireSkillsInstaller_InvalidMetadata, 363return AcquisitionResult.Failed(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.AspireSkillsInstaller_InvalidBundle, ex.Message)); 371return AgentCommandStrings.AspireSkillsInstaller_MissingMetadataVersion; 378AgentCommandStrings.AspireSkillsInstaller_MetadataRepositoryMismatch, 385return AgentCommandStrings.AspireSkillsInstaller_MissingMetadataTag; 390return AgentCommandStrings.AspireSkillsInstaller_MissingMetadataAssetName; 395return AgentCommandStrings.AspireSkillsInstaller_MissingMetadataSha512;
Agents\McpConfigFileHelper.cs (2)
86string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.MalformedConfigFileError, configFilePath), ex); 132AgentCommandStrings.McpServerContainerMustBeJsonObject, serverContainerKey, configFilePath));
Agents\Playwright\PlaywrightCliInstaller.cs (10)
146AgentCommandStrings.PlaywrightCliInstaller_InstallingStatus, 173return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_InvalidVersionOverride, VersionOverrideKey, versionOverride)); 189return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToResolvePackage, NpmPackageInfo.FormatPackageSpecifier(PackageName, effectiveRange))); 238return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToDownload, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 267return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.Outcome)); 283return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_FailedToInstallGlobally, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version))); 321return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles); 357return (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles); 423? (PlaywrightInstallStatus.Failed, AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles) 424: (PlaywrightInstallStatus.InstalledWithWarnings, AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings);
Agents\SkillDefinition.cs (2)
21AgentCommandStrings.SkillDescription_PlaywrightCli, 33AgentCommandStrings.SkillDescription_DotnetInspect,
Commands\AgentCommand.cs (1)
21: base(AgentTelemetryProtocol.AgentCommandName, AgentCommandStrings.Description, services)
Commands\AgentInitCommand.cs (37)
45: base("init", AgentCommandStrings.InitCommand_Description, services) 67Description = AgentCommandStrings.InitCommand_WorkspaceRootOptionDescription 72Description = string.Format(CultureInfo.InvariantCulture, AgentCommandStrings.InitCommand_SkillsOptionDescription, 88Description = AgentCommandStrings.InitCommand_McpOptionDescription, 98Description = string.Format(CultureInfo.InvariantCulture, AgentCommandStrings.InitCommand_EnvironmentsOptionDescription, 114result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 133Description = AgentCommandStrings.InitCommand_ScopeOptionDescription, 144result.AddError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidScope, result.Tokens[0].Value)); 269InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InvalidEnvironments, 294AgentCommandStrings.InitCommand_SelectAgentsPrompt, 307InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_NoConfigurationSelected); 355AgentCommandStrings.InitCommand_SelectSkills, 374AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, 381InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_NoConfigurationSelected); 392AgentCommandStrings.InitCommand_SelectScopePrompt, 395? AgentCommandStrings.InitCommand_ProjectScope 396: AgentCommandStrings.InitCommand_GlobalScope, 466InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, AgentCommandStrings.InitCommand_InstalledPlaywrightCli); 477InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_PlaywrightCliSkipped); 503AgentCommandStrings.InitCommand_McpConfigurationDescription, firstTarget.Client.DisplayName, targets.Key); 519string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigUpdate_Description, client.DisplayName))); 525AgentCommandStrings.InitCommand_McpConfigurationDescription, client.DisplayName, configFilePath))); 545string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.SkippedMalformedConfigFile, description)); 565InteractionService.DisplayMessage(KnownEmojis.Warning, AgentCommandStrings.ConfigurationCompletedWithErrors); 602string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHooksInstalled, environmentNames)); 610TelemetryHookSkipReason.MalformedConfig => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedMalformedConfig, environmentName), 611TelemetryHookSkipReason.UnexpectedConfigShape => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookSkippedUnexpectedShape, environmentName), 612_ => string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_TelemetryHookWriteFailed, environmentName), 835string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_FailedToInstallSkill, skill.Name, fullSkillDirectoryPath, ex.Message)); 850AgentCommandStrings.InitCommand_InstalledSkillsSummary, 851$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, skillNames)}", 852$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, locations)}"); 892var lines = new List<string> { AgentCommandStrings.InitCommand_InstallationLocations }; 901AddLocation(AgentCommandStrings.InitCommand_SkillsLocationHint, directory, 913AddLocation(AgentCommandStrings.InitCommand_McpLocationHint, path, 921lines.Add(AgentCommandStrings.InitCommand_SharedLocationNotice); 932location = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_SharedLocation,
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\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (2)
70Message = string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.DeprecatedConfigWarning, location.AgentName), 71Fix = AgentCommandStrings.DeprecatedConfigFix
Aspire.Cli.Tests (24)
Agents\PlaywrightCliInstallerTests.cs (3)
149? AgentCommandStrings.PlaywrightCliInstaller_InstalledWithMirrorWarnings 150: AgentCommandStrings.PlaywrightCliInstaller_FailedToMirrorSkillFiles, message); 186Assert.Equal(AgentCommandStrings.PlaywrightCliInstaller_FailedToGenerateSkillFiles, message);
Commands\AgentInitClientSelectionTests.cs (14)
170call => call.PromptText == AgentCommandStrings.InitCommand_SelectAgentsPrompt); 317Assert.Equal(AgentCommandStrings.InitCommand_SelectAgentsPrompt, prompt); 358if (prompt == AgentCommandStrings.InitCommand_SelectSkills) 365Assert.Equal(AgentCommandStrings.InitCommand_SelectAgentsPrompt, prompt); 371if (message.StartsWith(AgentCommandStrings.InitCommand_InstallationLocations, StringComparison.Ordinal)) 400return prompt == AgentCommandStrings.InitCommand_SelectSkills 428[AgentCommandStrings.InitCommand_SelectAgentsPrompt, AgentCommandStrings.InitCommand_SelectSkills, 429AgentCommandStrings.InitCommand_ConfigureMcpServerPrompt, AgentCommandStrings.InitCommand_SelectScopePrompt], 444return prompt == AgentCommandStrings.InitCommand_SelectAgentsPrompt ? [AgentClient.Copilot] : []; 481var summary = Assert.Single(interaction.DisplayedMessages, message => message.Message.StartsWith(AgentCommandStrings.InitCommand_InstalledSkillsSummary, StringComparison.Ordinal)); 604string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_McpConfigurationDescription, displayName, configPath), 813string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_McpConfigurationDescription,
Commands\AgentInitCommandTests.cs (6)
50AgentCommandStrings.InitCommand_InstalledSkillsSummary, 51$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, CommonAgentApplicators.AspireSkillName)}", 52$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, "~/.agents/skills")}"); 84AgentCommandStrings.InitCommand_InstalledSkillsSummary, 87AgentCommandStrings.InitCommand_InstalledSkillsSummarySkills, 89$" {string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.InitCommand_InstalledSkillsSummaryLocations, ".agents/skills")}");
Interaction\ConsoleInteractionServiceTests.cs (1)
1974AgentCommandStrings.InitCommand_SelectAgentsPrompt, AgentClient.All,