NewStore constructs a Store rooted at ~/.config/code-agent-manager (overridable via CAM_CONFIG_DIR).
(kind Kind)
| 69 | // NewStore constructs a Store rooted at ~/.config/code-agent-manager |
| 70 | // (overridable via CAM_CONFIG_DIR). |
| 71 | func 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. |
| 76 | func (s *Store) Path() string { |