import{r as e}from"./norm-CeclA1Tu.js";import{n as t,r as n,t as r}from"./conversationMemoryStore-SwwC8QCG.js";var i=`career_coach`,a=()=>t(i),o=(e,t)=>{n(i,t)},s=()=>{r(i)},c=t=>{let n=a();if(!n)return null;let r=e(t),i=e(n.sessionId);if(r&&i&&r!==i)return null;let o=n.result&&typeof n.result==`object`?n.result:null;return{id:i||r,title:e(o?.title)||`职业教练报告`,status:e(n.runState)||`done`,latestResult:o,profileSnapshot:n.profile&&typeof n.profile==`object`?n.profile:null,chatTurns:Array.isArray(n.chatTurns)?n.chatTurns:[],uploadedDocs:Array.isArray(n.uploadedDocs)?n.uploadedDocs:[],updatedAt:n._ts?new Date(Number(n._ts)).toISOString():``}};export{o as i,c as n,a as r,s as t};