Files
archie/internal/config/ecosystem.go
T
sam f6d51416f0 chore: replace 607 em-dashes with double hyphens project-wide
Includes MCP crash-after-init test fix (crash moved from handle() to serve()
entry point so transport sees immediate subprocess death).
2026-07-26 09:53:33 +10:00

31 lines
836 B
Go

package config
// ecosystemDefaults holds the per-ecosystem default preflight check and
// test-file glob. An ecosystem not listed here (or "custom") means: no
// preflight at all, empty test glob (protection no-ops).
type ecosystemDefaults struct {
Preflight [][]string
TestGlob string
}
// ecosystems maps known ecosystem names to their defaults.
// "custom" is deliberately absent -- it means user-configured everything.
var ecosystems = map[string]ecosystemDefaults{
"go": {
Preflight: [][]string{{"go", "version"}},
TestGlob: "*_test.go",
},
"python": {
Preflight: [][]string{{"python", "--version"}},
TestGlob: "test_*.py",
},
"node": {
Preflight: [][]string{{"node", "--version"}},
TestGlob: "*.test.ts",
},
"rust": {
Preflight: [][]string{{"cargo", "--version"}},
TestGlob: "tests/*.rs",
},
}