61 references to Global
aspire (6)
Agents\AgentPath.cs (2)
54
? GetDisplayPath(path, AgentConfigurationScope.
Global
, workspaceRoot, executionContext)
72
return scope is AgentConfigurationScope.
Global
? $"~/{displayRelativePath}" : displayRelativePath;
Agents\AspireSkills\LocalAspireSkills.cs (1)
50
.Append((Path: Path.Combine(homeDirectory.FullName, AgentPath.UniversalSkillsDirectory), Scope: AgentConfigurationScope.
Global
, Owners: s_universalSkillOwners));
Agents\Copilot\CopilotAgentClient.cs (1)
89
if (scope is not AgentConfigurationScope.
Global
)
Agents\McpConfigFileHelper.cs (1)
97
var serverConfiguration = scope is AgentConfigurationScope.
Global
Commands\AgentInitCommand.cs (1)
523
new[] { AgentConfigurationScope.Project, AgentConfigurationScope.
Global
},
Aspire.Cli.Tests (55)
Agents\AgentConfigurationTests.cs (13)
220
var inherited = client.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, _context.Project);
295
var path = _context.OpenCode.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, _context.Project);
300
remote, _context.Project, AgentConfigurationScope.
Global
, remoteEdit, _context.Sources, CancellationToken.None);
303
path, _context.Project, AgentConfigurationScope.
Global
, mcpEdit, CancellationToken.None);
304
_context.OpenCode.UpdateMcpConfig(mcp, mcpPath, configureServer: true, AgentConfigurationScope.
Global
);
528
var userResults = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, clients).DefaultTimeout();
570
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, [_context.ClaudeCode]).DefaultTimeout();
594
: client.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, _context.Project);
673
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, [_context.ClaudeCode]).DefaultTimeout();
685
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, [_context.Copilot]).DefaultTimeout();
686
var repeated = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, [_context.Copilot]).DefaultTimeout();
704
AgentConfigurationScope.
Global
, [_context.Copilot, _context.ClaudeCode]);
726
AgentConfigurationScope.
Global
, [_context.Copilot, _context.ClaudeCode]);
Agents\AgentPathTests.cs (3)
45
_context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, _context.Project));
47
_context.Copilot.GetMcpConfigPath(AgentConfigurationScope.
Global
, _context.Project));
86
Assert.Equal(projectPath, AgentPath.GetDisplayPath(projectPath, AgentConfigurationScope.
Global
, _context.Project, _context.ExecutionContext));
Agents\LocalAspireSkillsTests.cs (2)
83
new[] { (project, AgentConfigurationScope.Project), (user, AgentConfigurationScope.
Global
) }
96
Assert.Equal([(skill, AgentConfigurationScope.Project), (skill, AgentConfigurationScope.
Global
)], result);
Agents\OpenCodeAgentClientTests.cs (4)
170
if (scope is AgentConfigurationScope.
Global
)
351
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, [_context.OpenCode]);
356
Assert.Equal(_context.OpenCode.GetMcpConfigPath(AgentConfigurationScope.
Global
, _context.Project), result.TargetPath);
378
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.
Global
, [_context.OpenCode]);
Agents\SkillSourceTests.cs (1)
207
var scope = global ? AgentConfigurationScope.
Global
: AgentConfigurationScope.Project;
Commands\AgentInitClientSelectionTests.cs (26)
100
var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
206
[InlineData("GlObAl", nameof(AgentConfigurationScope.
Global
))]
490
Assert.Equal([AgentConfigurationScope.Project, AgentConfigurationScope.
Global
], choices.Cast<AgentConfigurationScope>());
499
return AgentConfigurationScope.
Global
;
522
workspace.WorkspaceRoot, AgentConfigurationScope.
Global
, [SkillSource.BuiltIn]));
549
PromptForSelectionCallback = (_, _, _, _) => AgentConfigurationScope.
Global
642
var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
787
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
837
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
892
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
957
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1009
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1083
var path = client.GetMcpConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot);
1181
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1232
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1265
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1288
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1327
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1428
var path = client.GetMcpConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot);
1476
var mcpPath = client.GetMcpConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot);
1477
var pluginPath = client.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot);
1521
var scope = global ? AgentConfigurationScope.
Global
: AgentConfigurationScope.Project;
1641
Assert.True(File.Exists(context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, context.Project)));
1642
Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.
Global
, context.Project)));
1643
Assert.False(File.Exists(context.ClaudeCode.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, context.Project)));
1649
var mcpPath = context.Copilot.GetMcpConfigPath(AgentConfigurationScope.
Global
, context.Project);
Commands\AgentInitCommandTests.cs (5)
858
[InlineData(nameof(AgentConfigurationScope.
Global
))]
874
var prefix = scope is AgentConfigurationScope.
Global
? "~/" : string.Empty;
1151
client.GetIntegrationConfigPath(AgentConfigurationScope.
Global
, context.Project), settings);
1214
[InlineData("copilot", nameof(AgentConfigurationScope.
Global
), "managed-settings.json")]
1361
[InlineData(nameof(AgentConfigurationScope.
Global
))]
Commands\InitCommandTests.cs (1)
1105
? AgentConfigurationScope.
Global