fix: address Phase 4 review — cookie file permissions (0600), gitignore cookies dir

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
saopig1andClaude Opus 4.6 committed 2026-03-30 00:41:24 +08:00
1 parent 94902fc2c4
commit fbc4cbe4d6
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -4,4 +4,5 @@ dist/
*.db
.env
config.json
cookies/
.superpowers/
+1 -1
View File
@@ -17,7 +17,7 @@ export function createCookieStore(cookieDir: string): CookieStore {
fs.writeFileSync(
filePath,
JSON.stringify({ cookie, updatedAt: new Date().toISOString() }),
"utf-8"
{ encoding: "utf-8", mode: 0o600 }
);
},