MCPcopy Create free account
hub / github.com/vercel/vercel / renderCandidateSuggestion

Function renderCandidateSuggestion

packages/python/src/entrypoint.ts:214–226  ·  view source on GitHub ↗
(candidates: PythonEntrypoint[])

Source from the content-addressed store, hash-verified

212}
213
214function renderCandidateSuggestion(candidates: PythonEntrypoint[]): string {
215 const lines = candidates.map(
216 c => ` ${c.entrypoint} (variable: ${c.variableName})`
217 );
218 const suggested = candidates[0];
219 const moduleAttr = `${entrypointToModule(suggested.entrypoint)}:${suggested.variableName}`;
220 return (
221 `but found potential entrypoints:\n${lines.join('\n')}\n\n` +
222 `Add this to your pyproject.toml:\n\n` +
223 `[tool.vercel]\n` +
224 `entrypoint = "${moduleAttr}"`
225 );
226}
227
228async function resolveModuleAttrEntrypoint(
229 workPath: string,

Callers 1

makeDiagnosticErrorFunction · 0.85

Calls 2

entrypointToModuleFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected