MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / fetchResourceContent

Method fetchResourceContent

internal/metadata/refresh.go:450–453  ·  view source on GitHub ↗

fetchResourceContent downloads the resource's source repo and reads its manifest content. Failures return an empty string so install still creates the directory structure; the directory presence is what installed-status detection keys on. ItemPath points at the resource directory (skills/plugins) or

(item Item)

Source from the content-addressed store, hash-verified

448// keys on. ItemPath points at the resource directory (skills/plugins) or the
449// manifest file itself (agents/instructions) relative to the repo root.
450func (svc *Service) fetchResourceContent(item Item) string {
451 content, _ := svc.fetchResourceManifest(item)
452 return content
453}
454
455// fetchResourceManifest downloads the resource's source repo and reads its
456// manifest, returning both the content and the manifest path relative to the

Callers 2

InstallToTargetsMethod · 0.95

Calls 1

fetchResourceManifestMethod · 0.95

Tested by

no test coverage detected