MCPcopy Create free account
hub / github.com/freecodexyz/free-code / buildDeepLink

Function buildDeepLink

src/utils/deepLink/parseDeepLink.ts:158–170  ·  view source on GitHub ↗
(action: DeepLinkAction)

Source from the content-addressed store, hash-verified

156 * Build a claude-cli:// deep link URL.
157 */
158export function buildDeepLink(action: DeepLinkAction): string {
159 const url = new URL(`${DEEP_LINK_PROTOCOL}://open`)
160 if (action.query) {
161 url.searchParams.set('q', action.query)
162 }
163 if (action.cwd) {
164 url.searchParams.set('cwd', action.cwd)
165 }
166 if (action.repo) {
167 url.searchParams.set('repo', action.repo)
168 }
169 return url.toString()
170}

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected