import{w as e}from"./DsanjglN.js";import{i as t,m as n}from"./B_DA9RKE2.js";import"./Cx_-1PHK2.js";import"./BVDTFQLg.js";new Set(t);function r(e){return{peerId:e.peerId,cantFile:e.cantFile??null,displayName:e.displayName,role:e.role,systemPromptFragment:e.systemPromptFragment??null,capabilityFlags:e.capabilityFlags??null,createdAt:new Date(e.createdAt).toISOString(),updatedAt:new Date(e.updatedAt).toISOString()}}async function i(t,i){let a=await t.select().from(n).where(e(n.peerId,i)).limit(1);return a.length===0?null:r(a[0])}export{i as getSigil};