-
-
Notifications
You must be signed in to change notification settings - Fork 396
Closed
Description
When I start the plugin, I get this error:
I don't have folder ~/.claude-mem
⚠️ Claude-Mem: First-Time Setup
Dependencies are installing in the background. This only happens once.
💡 TIPS:
• Memories will start generating while you work
• Use /init to write or update your CLAUDE.md for better project context
• Try /clear after one session to see what context looks like
Thank you for installing Claude-Mem!
This message was not added to your startup context, so you can continue working as normal.
⎿ SessionStart:startup says: Plugin hook error: 1 | #!/usr/bin/env bun
2 | import At from"path";import{stdin as R}from"process";import T from"path";import{homedir as gt}from"os";import{spawnSync as mt}from"child_process";import{existsSync as St,writeFileSync as x,readFileSync as dt}from"fs";import{readFileSync as Y,writeFileSync as
J,existsSync as q}from"fs";import{join as Q}from"path";import{homedir as z}from"os";var G=["bugfix","feature","refactor","discovery","decision","change"],X=["how-it-works","why-it-exists","what-changed","problem-solution","gotcha","pattern","trade-off"];var
U=G.join(","),v=X.join(",");var c=class{static DEFAULTS={CLAUDE_MEM_MODEL:"claude-haiku-4-5",CLAUDE_MEM_CONTEXT_OBSERVATIONS:"50",CLAUDE_MEM_WORKER_PORT:"37777",CLAUDE_MEM_WORKER_HOST:"127.0.0.1",CLAUDE_MEM_SKIP_TOOLS:"ListMcpResourcesTool,SlashCommand,Skill,Tod
oWrite,AskUserQuestion",CLAUDE_MEM_DATA_DIR:Q(z(),".claude-mem"),CLAUDE_MEM_LOG_LEVEL:"INFO",CLAUDE_MEM_PYTHON_VERSION:"3.13",CLAUDE_CODE_PATH:"",CLAUDE_MEM_CONTEXT_SHOW_READ_TOKENS:"true",CLAUDE_MEM_CONTEXT_SHOW_WORK_TOKENS:"true",CLAUDE_MEM_CO
3 | ${t.stack}`:t.message;if(Array.isArray(t))return`[${t.length} items]`;let e=Object.keys(t);return e.length===0?"{}":e.length<=3?JSON.stringify(t):`{${e.length} keys: ${e.slice(0,3).join(", ")}...}`}return String(t)}formatTool(t,e){if(!e)return t;try{let
n=typeof e=="string"?JSON.parse(e):e;if(t==="Bash"&&n.command){let o=n.command.length>50?n.command.substring(0,50)+"...":n.command;return`${t}(${o})`}if(t==="Read"&&n.file_path){let
o=n.file_path.split("/").pop()||n.file_path;return`${t}(${o})`}if(t==="Edit"&&n.file_path){let o=n.file_path.split("/").pop()||n.file_path;return`${t}(${o})`}if(t==="Write"&&n.file_path){let o=n.file_path.split("/").pop()||n.file_path;return`${t}(${o})`}return
t}catch{return t}}log(t,e,n,o,s){if(t<this.getLevel())return;let i=new Date().toISOString().replace("T"," ").substring(0,23),l=A[t].padEnd(5),d=e.padEnd(6),O="";o?.correlationId?O=`[${o.correlationId}] `:o?.sessionId&&(O=`[session-${o.sessionId}] `);let
h="";s!=null&&(this.getLevel()===0&&typeof s=="object"?h=`
4 | `+JSON.stringify(s,null,2):h=" "+this.formatData(s));let I="";if(o){let{sessionId:Mt,sdkSessionId:Dt,correlationId:Lt,...w}=o;Object.keys(w).length>0&&(I=` {${Object.entries(w).map(([V,B])=>`${V}=${B}`).join(", ")}}`)}let y=`[${i}] [${l}] [${d}]
${O}${n}${I}${h}`;t===3?console.error(y):console.log(y)}debug(t,e,n,o){this.log(0,t,e,n,o)}info(t,e,n,o){this.log(1,t,e,n,o)}warn(t,e,n,o){this.log(2,t,e,n,o)}error(t,e,n,o){this.log(3,t,e,n,o)}dataIn(t,e,n,o){this.info(t,`\u2192
${e}`,n,o)}dataOut(t,e,n,o){this.info(t,`\u2190 ${e}`,n,o)}success(t,e,n,o){this.info(t,`\u2713 ${e}`,n,o)}failure(t,e,n,o){this.error(t,`\u2717 ${e}`,n,o)}timing(t,e,n,o){this.info(t,`\u23F1 ${e}`,o,{duration:`${n}ms`})}},a=new C;var
f={DEFAULT:5e3,HEALTH_CHECK:1e3,WORKER_STARTUP_WAIT:1e3,WORKER_STARTUP_RETRIES:15,WINDOWS_MULTIPLIER:1.5};function P(r){return process.platform==="win32"?Math.round(r*f.WINDOWS_MULTIPLIER):r}import{existsSync as D,readFileSync as nt,writeFileSync as
ot,unlinkSync as st,mkdirSync as N}from"fs";import{createWriteS
ENOENT: no such file or directory, open '/Users/igorpnev/.claude-mem/.pm2-migrated'
path: "/Users/igorpnev/.claude-mem/.pm2-migrated",
syscall: "open",
errno: -2,
code: "ENOENT"
at ht (/Users/igorpnev/.claude/plugins/cache/thedotmack/claude-mem/7.1.3/scripts/context-hook.js:4:6563)
at ht (/Users/igorpnev/.claude/plugins/cache/thedotmack/claude-mem/7.1.3/scripts/context-hook.js:4:6332)
at $ (/Users/igorpnev/.claude/plugins/cache/thedotmack/claude-mem/7.1.3/scripts/context-hook.js:4:6828)
at async j (/Users/igorpnev/.claude/plugins/cache/thedotmack/claude-mem/7.1.3/scripts/context-hook.js:9:320)
at async <anonymous> (/Users/igorpnev/.claude/plugins/cache/thedotmack/claude-mem/7.1.3/scripts/context-hook.js:9:879)
Bun v1.3.4 (macOS arm64)
tolgamorf, amihos and HynDuf
Metadata
Metadata
Assignees
Labels
No labels