dev-disk-doctor 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -140,7 +140,7 @@ The scanner core is in `src/core`, one file per area in `src/detectors`, the wor
140
140
 
141
141
  ## Releasing (maintainers)
142
142
 
143
- Pushing a `v*` tag publishes to npm through GitHub Actions. Setup, the release steps, how to verify a release and troubleshooting are in [docs/RELEASING.md](docs/RELEASING.md).
143
+ Pushing a `v*` tag stages the release on npm through GitHub Actions, and a maintainer approves it with 2FA. Setup, the release steps, how to verify a release and troubleshooting are in [docs/RELEASING.md](docs/RELEASING.md).
144
144
 
145
145
  ## License
146
146
 
@@ -70,5 +70,6 @@ export function shellQuote(s) {
70
70
  return /^[\w@%+=:,./-]+$/.test(s) ? s : `'${s.replace(/'/g, `'\\''`)}'`;
71
71
  }
72
72
  export function daysAgo(ms, now = Date.now()) {
73
- return Math.floor((now - ms) / 86_400_000);
73
+ // A just-written file can have an mtime slightly ahead of Date.now(); never report negative idle time.
74
+ return Math.max(0, Math.floor((now - ms) / 86_400_000));
74
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-disk-doctor",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Why is my disk full? A read-only disk and git-worktree doctor for developer machines (Docker, Xcode, Android, node_modules, caches). CLI + MCP server for AI agents.",
5
5
  "license": "MIT",
6
6
  "author": "Prageeth Silva",