UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 935 B
import{a as e,r as t}from"./openclaw-state-read-kysely-sync-Bcu0Qb7F.mjs";import{o as n}from"./openclaw-state-read-openclaw-state-db-schema-helpers-QFZd8aJI.mjs";import{a as r}from"./openclaw-state-read-sqlite-transaction-Bt-IwVhZ.mjs";import{r as i}from"./openclaw-state-read-openclaw-agent-db-registry.read-DCfsbJGg.mjs";import{i as a}from"./openclaw-state-read-agent-deletion-journal.read-BNE7CEJK.mjs";function readRetainedAgentDeletionIds(r){return n(r,`agent_deletion_journal`)?t(r,e(r).selectFrom(`agent_deletion_journal`).select(`agent_id`).where(`cleanup_completed`,`=`,1).where(`delete_files`,`=`,0)).rows.map(e=>e.agent_id):[]}function readAgentDatabaseDeletionWorkerSnapshot(e,t,n){return r(e,()=>{let r=[];return{retainedDeletions:a(e,t,n,r),registeredAgentDatabases:i(e,t,!1),deletedAgents:r}},{operationLabel:`agentDeletionJournal.snapshot`})}export{readAgentDatabaseDeletionWorkerSnapshot,readRetainedAgentDeletionIds};