Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -574,6 +577,7 @@ func nodeDependentPkgs() map[string]bool {
"codex": true,
"copilot": true,
"playwright": true,
"mdts": true,
}
}

Expand Down Expand Up @@ -697,6 +701,7 @@ func installNpmToolsBatch(pkgs []*CustomPackage) {
"codex": "@openai/codex",
"copilot": "@github/copilot",
"playwright": "playwright",
"mdts": "mdts",
}

var npmPkgs []string
Expand Down
1 change: 1 addition & 0 deletions packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func customPackages() []CustomPackage {
{Name: "codex"},
{Name: "copilot"},
{Name: "playwright"},
{Name: "mdts"},
{Name: "gh-repo-bootstrap"},
{
Name: "rustup",
Expand Down
Loading