codewhale.history 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codewhale.history",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "CodeWhale utility commands: session history, tool listing, file snapshot — global install",
5
5
  "bin": {
6
6
  "codewhale-history": "./_list_sessions.js",
@@ -17,7 +17,7 @@ When the user types `//snapshot on`, `//snapshot off`, or `//snapshot status`, m
17
17
  - **Windows**: `if (Test-Path .git) { ... }`
18
18
  - **macOS/Linux**: `if [ -d .git ]; then ...`
19
19
  3. **If Git repo exists**: reply "This workspace has a Git repo — snapshotting is not needed. Use `git restore <file>` to undo changes."
20
- 4. **If no Git repo**: create `_snapshots/` directory, write a note to persist `snapshot_enabled=true` **and overwrite any stale naming-convention notes** with the timestamp format (this fixes sessions that cached old `v1/v2/v3` notes from a previous session start). Then confirm to the user.
20
+ 4. **If no Git repo**: create `_snapshots/` directory, write a note to persist `snapshot_enabled=true`, then confirm to the user.
21
21
  5. From this point forward, before editing any **existing** file:
22
22
  - **Ensure `_snapshots/` exists** — create it if missing (don't assume it still exists from init time)
23
23
  **Windows**: `if (-not (Test-Path '_snapshots')) { New-Item -ItemType Directory -Path '_snapshots' -Force | Out-Null }`