UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.02 kB
import{v as e}from"./openclaw-state-read-home-dir-BQZX1pD2.mjs";import{g as t,s as n,y as r}from"./openclaw-state-read-sqlite-database-admission-Ck6VG7rE.mjs";import{a as i}from"./openclaw-state-read-record-coerce-D1s3ReAs.mjs";import{n as a}from"./openclaw-state-read-agent-id-DmscQLD6.mjs";import"./openclaw-state-read-session-key-DaKMXMbu.mjs";const o={name:`agent.deletion-discovery`,schemaDependent:!0,read:e=>i(e)?e:void 0};function getPreparedAgentDeletionDiscovery(e){return t(e,o)??void 0}function statusKey(e){return{name:`agent.deletion-status:${a(e)}`,read:e=>e===`absent`||e===`pending`||e===`complete`?e:void 0}}function getAgentDeletionJournalStatus(e,t){return n(e,statusKey(t))??void 0}function prepareAgentDeletionJournalStatus(e,t){let i=statusKey(t),a=r(e,i);return e=>(e?n(e,i):a())??void 0}e(Symbol.for(`openclaw.agentDeletionJournalStatusLoads`),()=>/* @__PURE__ */ new Map);export{getPreparedAgentDeletionDiscovery as n,prepareAgentDeletionJournalStatus as r,getAgentDeletionJournalStatus as t};