MCPcopy
hub / github.com/codeaashu/claude-code / getMaxVersion

Function getMaxVersion

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

Source from the content-addressed store, hash-verified

106 * Returns undefined if no cap is configured.
107 */
108export async function getMaxVersion(): Promise<string | undefined> {
109 const config = await getMaxVersionConfig()
110 if (process.env.USER_TYPE === 'ant') {
111 return config.ant || undefined
112 }
113 return config.external || undefined
114}
115
116/**
117 * 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