MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / getAutomationVersion

Function getAutomationVersion

scripts/check-sdk-version-sync.mjs:236–247  ·  view source on GitHub ↗

* Read the automation version from env var or config/defaults.json

()

Source from the content-addressed store, hash-verified

234 * Read the automation version from env var or config/defaults.json
235 */
236function getAutomationVersion() {
237 // Allow override via environment variable
238 const envVersion = process.env.AUTOMATION_PACKAGE_VERSION;
239 if (envVersion && envVersion.trim()) {
240 return { version: envVersion.trim(), source: "AUTOMATION_PACKAGE_VERSION env var" };
241 }
242
243 return {
244 version: SHARED_DEFAULTS.versions.automation,
245 source: "config/defaults.json (versions.automation)",
246 };
247}
248
249/**
250 * Fetch package metadata from PyPI and extract dependencies (with retry)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected