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

Function NewStore

internal/entities/store.go:71–73  ·  view source on GitHub ↗

NewStore constructs a Store rooted at ~/.config/code-agent-manager (overridable via CAM_CONFIG_DIR).

(kind Kind)

Source from the content-addressed store, hash-verified

69// NewStore constructs a Store rooted at ~/.config/code-agent-manager
70// (overridable via CAM_CONFIG_DIR).
71func NewStore(kind Kind) *Store {
72 return &Store{dir: pathutil.ConfigDir(), kind: kind}
73}
74
75// Path returns the on-disk JSON path for the store.
76func (s *Store) Path() string {

Callers 8

entityStoreFunction · 0.92
seedEntityFunction · 0.92
entitySearchCommandFunction · 0.92
fetchSingleRepoCountFunction · 0.92
entityInstallCommandFunction · 0.92
installFromGitHubFunction · 0.92
TestStoreRoundTripFunction · 0.92

Calls 1

ConfigDirFunction · 0.92

Tested by 3

seedEntityFunction · 0.74
TestStoreRoundTripFunction · 0.74