// @bun
var z=Object.defineProperty;var B=(q)=>q;function E(q,x){this[q]=B.bind(null,x)}var J=(q,x)=>{for(var j in x)z(q,j,{get:x[j],enumerable:!0,configurable:!0,set:E.bind(x,j)})};var F=(q,x)=>()=>(q&&(x=q(q=0)),x);var N=import.meta.require;import{anthropic as G}from"@ai-sdk/anthropic";function Q(q){return G.tools.memory_20250818({execute:async(j)=>{switch(j.command){case"view":return q.view(j.path??"/memories",j.view_range);case"create":return q.create(j.path??"/memories/untitled",j.file_text??"");case"str_replace":return q.strReplace(j.path??"/memories",j.old_str??"",j.new_str??"");case"insert":return q.insert(j.path??"/memories",j.insert_line??0,j.insert_text??"");case"delete":return q.delete(j.path??"/memories");case"rename":return q.rename(j.old_path??"/memories",j.new_path??"/memories");default:return`Unknown command: ${j.command}`}}})}var H=()=>{};H();export{Q as createAnthropicMemoryTool};
