MCPcopy Create free account
hub / github.com/github/gh-aw / getDefaultGhAWRuntimeVersion

Function getDefaultGhAWRuntimeVersion

pkg/workflow/runtime_detection.go:185–191  ·  view source on GitHub ↗

getDefaultGhAWRuntimeVersion returns the default gh-aw runtime version to inject. Release builds use the released compiler version; dev builds use the current build version.

()

Source from the content-addressed store, hash-verified

183// getDefaultGhAWRuntimeVersion returns the default gh-aw runtime version to inject.
184// Release builds use the released compiler version; dev builds use the current build version.
185func getDefaultGhAWRuntimeVersion() string {
186 version := GetVersion()
187 if version == "" {
188 return "dev"
189 }
190 return version
191}
192
193// detectFromMCPConfigs scans MCP server configurations for runtime commands
194func detectFromMCPConfigs(tools *ToolsConfig, requirements map[string]*RuntimeRequirement) {

Callers 3

generateSetupStepFunction · 0.85
detectRuntimeFromCommandFunction · 0.85

Calls 1

GetVersionFunction · 0.70

Tested by

no test coverage detected