mirror of https://github.com/garrytan/gstack.git
Adds an atomic variant of writeSecureFile: write to a same-directory temp file (owner-only), best-effort fsync, then rename over the destination. A crash or concurrent reader sees either the old or new file, never a partial. Needed by the upcoming auto-cookie persistence layer, which rewrites its state file on every mutating command; a torn write there would drop a live auth cookie on the next load. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| PLAN-snapshot-dropdown-interactive.md | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||