adding mdts
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -151,6 +151,7 @@ func customPackages() []CustomPackage {
|
||||
{Name: "codex"},
|
||||
{Name: "copilot"},
|
||||
{Name: "playwright"},
|
||||
{Name: "mdts"},
|
||||
{Name: "gh-repo-bootstrap"},
|
||||
{
|
||||
Name: "rustup",
|
||||
|
||||
Reference in New Issue
Block a user