Commit 18df63a
feat: update init.ts to write YAML config (GIT-90) (#61)
* feat: update init.ts to write YAML config (GIT-90)
- Create .git-mem/ directory if it doesn't exist
- Write config as YAML to .git-mem/.git-mem.yaml
- Update .gitignore to ignore .git-mem/ directory
- Parse existing config as YAML when merging
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
AI-Agent: Claude-Code/2.1.42
AI-Model: claude-opus-4-5-20251101
AI-Decision: update init.ts to write YAML config (GIT-90). - Create .git-mem/ directory if it doesn't exist
AI-Confidence: medium
AI-Tags: commands, typescript
AI-Lifecycle: project
AI-Memory-Id: 4c2e5a59
AI-Source: heuristic
* fix: guard YAML parsing against null values
parseYaml() returns null for empty files. Add type guard to coerce
null/non-object results to empty object before passing to
deepMergeGitMemConfig().
Addresses CodeRabbit review feedback.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
AI-Agent: Claude-Code/2.1.42
AI-Model: claude-opus-4-5-20251101
AI-Gotcha: guard YAML parsing against null values. parseYaml() returns null for empty files. Add type guard to coerce
AI-Confidence: medium
AI-Tags: commands, typescript
AI-Lifecycle: project
AI-Memory-Id: 3d999379
AI-Source: heuristic
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6d1e0c0 commit 18df63a
1 file changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
253 | 267 | | |
254 | | - | |
255 | | - | |
| 268 | + | |
| 269 | + | |
256 | 270 | | |
257 | 271 | | |
258 | 272 | | |
| |||
295 | 309 | | |
296 | 310 | | |
297 | 311 | | |
298 | | - | |
| 312 | + | |
299 | 313 | | |
300 | 314 | | |
301 | 315 | | |
| |||
0 commit comments