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