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