import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import{t as n}from"./CX8DOZuw2.js";var r=e(t(),1),i=`session-journals`;function a(e,t){return(0,r.join)(e,`.cleo`,i,`${(t??new Date).toISOString().slice(0,10)}.jsonl`)}async function o(e,t,o){let s=a(e,o);n(e),await(0,r.mkdir)((0,r.join)(e,`.cleo`,i),{recursive:!0}),await(0,r.appendFile)(s,`${JSON.stringify(t)}\n`,{encoding:`utf-8`})}export{o as appendSessionJournalEntry};