Skip to content

Commit 2bc70cf

Browse files
Added an aiup command to initialise skills in a fresh repo/worktree
1 parent f871520 commit 2bc70cf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dev.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// ./dev.cs subup
1616
// ./dev.cs wrest
1717
// ./dev.cs nrest
18+
// ./dev.cs aiup
1819
// ./dev.cs cleanslate --dry-run
1920
//
2021
// This is intended to be run from the repo root so that git/dotnet
@@ -49,7 +50,8 @@ public async Task<int> CleanSlateAsync(
4950
{
5051
("git clean", "git", "clean -dfx"),
5152
("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")
5355
};
5456

5557
foreach (var (description, fileName, arguments) in steps)
@@ -94,6 +96,13 @@ public async Task<int> WorkloadRestoreAsync(GlobalOptions options = default!)
9496
return await RunStepAsync("dotnet workload restore", "dotnet", "workload restore", options.DryRun);
9597
}
9698

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+
97106
[Command("nrest", Description = "Restore the default CI solution.")]
98107
public Task<int> SolutionRestoreAsync(
99108
[Argument("solution", Description = "Solution file to restore. Defaults to platform-specific CI solution if omitted.")] string? solution = null,

0 commit comments

Comments
 (0)