MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / detectRepo

Function detectRepo

src/core/agent.ts:98–111  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

96}
97
98function detectRepo(cwd: string): string {
99 try {
100 const remote = execSync("git config --get remote.origin.url", {
101 cwd,
102 stdio: ["ignore", "pipe", "ignore"],
103 })
104 .toString()
105 .trim()
106 if (remote) return remote
107 } catch {
108 // not a git repo or no remote
109 }
110 return path.basename(cwd)
111}
112
113function getGitSummary(cwd: string): string {
114 try {

Callers 2

constructorMethod · 0.85
setModelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected