MCPcopy Create free account
hub / github.com/vercel/examples / parseStackId

Function parseStackId

python/vibe-coding-ide/frontend/src/templates.ts:42–50  ·  view source on GitHub ↗
(
  id: string
)

Source from the content-addressed store, hash-verified

40}
41
42function parseStackId(
43 id: string
44): { frontendId: string; backendId: string } | null {
45 if (!isStackId(id)) return null
46 const rest = id.slice('stack:'.length)
47 const [frontendId, backendId] = rest.split('+')
48 if (!frontendId || !backendId) return null
49 return { frontendId, backendId }
50}
51
52export function composeStack(
53 frontendId: string,

Callers 1

getStackByIdFunction · 0.85

Calls 1

isStackIdFunction · 0.85

Tested by

no test coverage detected