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