oh-my-adhd 0.2.27 → 0.2.28

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.
@@ -16,8 +16,9 @@ export const SENSITIVE_DIRS = [".ssh", ".aws", ".gnupg", ".kube", ".docker",
16
16
  path.join(".config", "git"), path.join(".config", "gh")];
17
17
  // Absolute system paths that are sensitive regardless of home dir location
18
18
  const SYSTEM_SENSITIVE_DIRS = [
19
- path.join("/", "root", ".ssh"), path.join("/", "root", ".aws"),
20
- path.join("/", "etc", "ssh"), path.join("/", "etc", "ssl"),
19
+ "/root/.ssh", "/root/.aws", "/root/.gnupg", "/root/.kube", "/root/.docker",
20
+ "/etc/ssh", "/etc/ssl", "/etc/shadow", "/etc/sudoers",
21
+ "/private/etc/ssh", "/private/etc/ssl", // macOS canonical paths
21
22
  ];
22
23
  export async function isSensitivePath(filePath) {
23
24
  const homeDir = os.homedir();
@@ -31,8 +32,9 @@ export async function isSensitivePath(filePath) {
31
32
  // Home-relative denylist
32
33
  if (SENSITIVE_DIRS.some(d => rel === d.toLowerCase() || rel.startsWith(d.toLowerCase() + path.sep)))
33
34
  return true;
34
- // Absolute denylist for paths outside home (e.g. /root/.ssh, /etc/ssl)
35
- if (SYSTEM_SENSITIVE_DIRS.some(d => realDir === d || realDir.startsWith(d + path.sep)))
35
+ // Absolute denylist for paths outside home case-folded for macOS APFS compatibility
36
+ const realDirLower = realDir.toLowerCase();
37
+ if (SYSTEM_SENSITIVE_DIRS.some(d => realDirLower === d || realDirLower.startsWith(d + "/")))
36
38
  return true;
37
39
  return false;
38
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-adhd",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "ADHD second brain — zero-friction capture, auto context restore, unstick. MCP-native Claude Code plugin.",
5
5
  "author": "Haechan Jeong",
6
6
  "repository": {