oh-my-adhd 0.2.0 → 0.2.2

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.
@@ -66,7 +66,7 @@ switch (cmd) {
66
66
  claudeJson.mcpServers = claudeJson.mcpServers || {};
67
67
  claudeJson.mcpServers["oh-my-adhd"] = {
68
68
  command: "npx",
69
- args: ["oh-my-adhd", "mcp"],
69
+ args: ["--yes", "oh-my-adhd@latest", "mcp"],
70
70
  };
71
71
  writeFileSync(claudeJsonPath, JSON.stringify(claudeJson, null, 2) + "\n", "utf8");
72
72
  console.log(`✓ MCP server registered in ${claudeJsonPath}`);
@@ -12,7 +12,7 @@ export function registerWikiRecall(server) {
12
12
  const candidates = threads.slice(0, Math.max(limit * 10, 50));
13
13
  // Use manifest-cached signal fields where available; fall back to file reads only for uncached
14
14
  const uncachedIdx = candidates
15
- .map((t, i) => (t.is_open === undefined ? i : -1))
15
+ .map((t, i) => (t.is_open == null ? i : -1))
16
16
  .filter((i) => i >= 0);
17
17
  const fileContents = new Map();
18
18
  if (uncachedIdx.length > 0) {
@@ -30,7 +30,7 @@ export function registerWikiRecall(server) {
30
30
  let capture_count;
31
31
  let next_action;
32
32
  let blocker;
33
- if (t.is_open !== undefined && t.last_action !== undefined && t.capture_count !== undefined) {
33
+ if (t.is_open != null && t.last_action != null && t.capture_count != null) {
34
34
  // Fast path: use manifest cache
35
35
  is_open = t.is_open;
36
36
  last_action = t.last_action;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-adhd",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "ADHD second brain — zero-friction capture, auto context restore, unstick. MCP-native Claude Code plugin.",
5
5
  "author": "Yeachan Heo",
6
6
  "repository": {