oh-my-adhd 0.2.3 → 0.2.4

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.
@@ -275,7 +275,7 @@ export async function getThreads() {
275
275
  return sorted;
276
276
  }
277
277
  export async function getThread(threadId) {
278
- if (!threadId || !/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(threadId))
278
+ if (!threadId || !/^[a-zA-Z0-9_-]+$/.test(threadId))
279
279
  return null;
280
280
  try {
281
281
  return await fs.readFile(path.join(THREADS_DIR, `${threadId}.md`), "utf-8");
@@ -339,7 +339,7 @@ export async function savePage(slug, content) {
339
339
  await fs.writeFile(tmpPage, content, "utf-8");
340
340
  await fs.rename(tmpPage, pageFile);
341
341
  }
342
- const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
342
+ const UUID_RE = /^[a-zA-Z0-9_-]+$/;
343
343
  const TRASH_DIR = path.join(BRAIN_DIR, ".trash");
344
344
  export async function deleteThread(threadId) {
345
345
  if (!UUID_RE.test(threadId)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-adhd",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
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": {