From 24a50e73dd3615844698b23acef477e66f28f78d Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Thu, 4 Jun 2026 18:02:43 -0500 Subject: [PATCH] adding mdts --- coverage_test.go | 4 ++-- custom.go | 5 +++++ packages.go | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/coverage_test.go b/coverage_test.go index 91b0fc9..0c25f74 100644 --- a/coverage_test.go +++ b/coverage_test.go @@ -241,9 +241,9 @@ func TestNpmInstalledNotFound(t *testing.T) { func TestIsCustomPkgInstalledNpmNames(t *testing.T) { defer resetMocks() hasCmd = func(name string) bool { - return name == "claude" || name == "codex" || name == "copilot" || name == "playwright" + return name == "claude" || name == "codex" || name == "copilot" || name == "playwright" || name == "mdts" } - for _, name := range []string{"claude", "codex", "copilot", "playwright"} { + for _, name := range []string{"claude", "codex", "copilot", "playwright", "mdts"} { ok, _ := isCustomPkgInstalled(&CustomPackage{Name: name}) if !ok { t.Errorf("expected %s detected as installed", name) diff --git a/custom.go b/custom.go index 8b6e4b7..e1c1037 100644 --- a/custom.go +++ b/custom.go @@ -132,6 +132,9 @@ func isCustomPkgInstalled(pkg *CustomPackage) (bool, string) { if name == "playwright" { return npmInstalled("playwright") } + if name == "mdts" { + return npmInstalled("mdts") + } raw := pkg.InstallPath if raw == "" { raw = defaultInstallPath(pkg) @@ -574,6 +577,7 @@ func nodeDependentPkgs() map[string]bool { "codex": true, "copilot": true, "playwright": true, + "mdts": true, } } @@ -697,6 +701,7 @@ func installNpmToolsBatch(pkgs []*CustomPackage) { "codex": "@openai/codex", "copilot": "@github/copilot", "playwright": "playwright", + "mdts": "mdts", } var npmPkgs []string diff --git a/packages.go b/packages.go index ad27091..2e351b9 100644 --- a/packages.go +++ b/packages.go @@ -151,6 +151,7 @@ func customPackages() []CustomPackage { {Name: "codex"}, {Name: "copilot"}, {Name: "playwright"}, + {Name: "mdts"}, {Name: "gh-repo-bootstrap"}, { Name: "rustup",