MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / dispatchGetCode

Function dispatchGetCode

packages/extension/mcp/runtime.ts:58–65  ·  view source on GitHub ↗
(
  args?: GetCodeParametersInput,
  runtimeOptions?: GetCodeRuntimeOptions
)

Source from the content-addressed store, hash-verified

56}
57
58async function dispatchGetCode(
59 args?: GetCodeParametersInput,
60 runtimeOptions?: GetCodeRuntimeOptions
61): Promise<GetCodeResult> {
62 const node = resolveSingleNode(args?.nodeId)
63 const { preferredLang, resolveTokens, vectorMode } = args ?? {}
64 return runGetCode([node], preferredLang, resolveTokens, vectorMode, runtimeOptions)
65}
66
67async function handleWindowGetCode(args?: WindowGetCodeParametersInput): Promise<GetCodeResult> {
68 const { _unbounded, ...rest } = args ?? {}

Callers 2

handleGetCodeFunction · 0.85
handleWindowGetCodeFunction · 0.85

Calls 1

resolveSingleNodeFunction · 0.85

Tested by

no test coverage detected