MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getMaxVersion

Function getMaxVersion

src/utils/autoUpdater.ts:107–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 * Returns undefined if no cap is configured.
106 */
107export async function getMaxVersion(): Promise<string | undefined> {
108 const config = await getMaxVersionConfig()
109 if (process.env.USER_TYPE === 'ant') {
110 return config.ant || undefined
111 }
112 return config.external || undefined
113}
114
115/**
116 * Returns the server-driven message explaining the known issue, if configured.

Callers 4

AutoUpdaterFunction · 0.85
NativeAutoUpdaterFunction · 0.85
updateLatestFunction · 0.85

Calls 1

getMaxVersionConfigFunction · 0.85

Tested by

no test coverage detected