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

Function New

internal/instructions/store.go:67–72  ·  view source on GitHub ↗

New returns a Store backed by the cam.db at dbPath, or the default path when dbPath is empty.

(dbPath string)

Source from the content-addressed store, hash-verified

65// New returns a Store backed by the cam.db at dbPath, or the default path when
66// dbPath is empty.
67func New(dbPath string) *Store {
68 if dbPath == "" {
69 dbPath = appstate.DefaultPath()
70 }
71 return &Store{dbPath: dbPath}
72}
73
74// Init ensures the schema exists and the managed directory is present.
75func (s *Store) Init(ctx context.Context) error {

Callers 2

instructionsStoreFunction · 0.92
newTestStoreFunction · 0.70

Calls 1

DefaultPathFunction · 0.92

Tested by 1

newTestStoreFunction · 0.56