MCPcopy Index your code
hub / github.com/TanStack/ai / gitSource

Function gitSource

packages/ai-sandbox/src/workspace.ts:28–35  ·  view source on GitHub ↗
(input: {
  url: string
  ref?: string
  auth?: { username?: string; token: string }
  depth?: number | 'full'
})

Source from the content-addressed store, hash-verified

26
27/** Clone a git repo into the workspace. `githubRepo` is a convenience wrapper. */
28export function gitSource(input: {
29 url: string
30 ref?: string
31 auth?: { username?: string; token: string }
32 depth?: number | 'full'
33}): WorkspaceSource {
34 return { type: 'git', ...input }
35}
36
37export function githubRepo(input: {
38 repo: string

Callers 1

bootstrap.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected