MCPcopy Create free account
hub / github.com/anomalyco/opencode / parts

Function parts

packages/core/src/project.ts:96–103  ·  view source on GitHub ↗
(host: string, name: string)

Source from the content-addressed store, hash-verified

94 }
95
96 function parts(host: string, name: string) {
97 const pathname = name
98 .replace(/^\/+/, "")
99 .replace(/\.git\/?$/, "")
100 .replace(/\/+$/, "")
101 if (!host || !pathname) return undefined
102 return `${host.toLowerCase()}/${pathname}`
103 }
104
105 const root = Effect.fnUntraced(function* (repo: Git.Repository) {
106 const root = (yield* git.history.rootCommits(repo))[0]

Callers 6

urlFunction · 0.70
TipsFunction · 0.50
renderAssistantPartGroupFunction · 0.50
SessionTurnFunction · 0.50
AssistantPartsFunction · 0.50
AssistantMessageDisplayFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected