|
15 | 15 | // ./dev.cs subup |
16 | 16 | // ./dev.cs wrest |
17 | 17 | // ./dev.cs nrest |
| 18 | +// ./dev.cs aiup |
18 | 19 | // ./dev.cs cleanslate --dry-run |
19 | 20 | // |
20 | 21 | // This is intended to be run from the repo root so that git/dotnet |
@@ -49,7 +50,8 @@ public async Task<int> CleanSlateAsync( |
49 | 50 | { |
50 | 51 | ("git clean", "git", "clean -dfx"), |
51 | 52 | ("git submodule update", "git", "submodule update --init --recursive"), |
52 | | - ("dotnet restore", "dotnet", $"restore \"{solution}\"") |
| 53 | + ("dotnet restore", "dotnet", $"restore \"{solution}\""), |
| 54 | + ("npx @sentry/dotagents install", "npx", "@sentry/dotagents install") |
53 | 55 | }; |
54 | 56 |
|
55 | 57 | foreach (var (description, fileName, arguments) in steps) |
@@ -94,6 +96,13 @@ public async Task<int> WorkloadRestoreAsync(GlobalOptions options = default!) |
94 | 96 | return await RunStepAsync("dotnet workload restore", "dotnet", "workload restore", options.DryRun); |
95 | 97 | } |
96 | 98 |
|
| 99 | + [Command("aiup", Description = "Install/update AI agent files via @sentry/dotagents.")] |
| 100 | + public Task<int> AiUpdateAsync(GlobalOptions options = default!) |
| 101 | + { |
| 102 | + Console.WriteLine("[dev] Installing/updating AI agent files"); |
| 103 | + return RunStepAsync("npx @sentry/dotagents install", "npx", "@sentry/dotagents install", options.DryRun); |
| 104 | + } |
| 105 | + |
97 | 106 | [Command("nrest", Description = "Restore the default CI solution.")] |
98 | 107 | public Task<int> SolutionRestoreAsync( |
99 | 108 | [Argument("solution", Description = "Solution file to restore. Defaults to platform-specific CI solution if omitted.")] string? solution = null, |
|
0 commit comments