package extensionflow

// capabilityToolActions is the closed, explicit map from App capability tool
// names to Extension Action names for the GitHub/Gitea Builtins. It replaces
// global underscore-to-hyphen normalization, which could create identity
// collisions. Unknown tools fail closed.
var capabilityToolActions = map[string]string{
	"watch_pull_request": "watch-pull-request",
	"list_watches":       "list-watches",
	"pause_watch":        "pause-watch",
	"resume_watch":       "resume-watch",
	"unwatch":            "unwatch",
}

// extensionActionNameForAppCapability returns the Extension Action name for one
// App capability tool and whether it exists in the closed explicit map.
func extensionActionNameForAppCapability(tool string) (string, bool) {
	action, ok := capabilityToolActions[tool]
	return action, ok
}
