MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / buildDeepLink

Function buildDeepLink

source code/utils/deepLink/parseDeepLink.ts:160–172  ·  view source on GitHub ↗
(action: DeepLinkAction)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected