adding mdts #26

Merged
JMR-dev merged 1 commits from feat-add-mdts into main 2026-06-04 23:04:11 +00:00
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -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)
+5
View File
@@ -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
+1
View File
@@ -151,6 +151,7 @@ func customPackages() []CustomPackage {
{Name: "codex"},
{Name: "copilot"},
{Name: "playwright"},
{Name: "mdts"},
{Name: "gh-repo-bootstrap"},
{
Name: "rustup",