UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 930 B
import{a as e,r as t}from"./openclaw-state-read-kysely-sync-DQyYiAw5.mjs";import{a as n}from"./openclaw-state-read-sqlite-transaction-V1rK3HH2.mjs";import{o as r}from"./openclaw-state-read-openclaw-state-db-schema-helpers-BkqUYEFY.mjs";import{i}from"./openclaw-state-read-openclaw-agent-db-registry.read-D1CTFqiu.mjs";import{i as a}from"./openclaw-state-read-agent-deletion-journal.read-DWSUE9n3.mjs";function readRetainedAgentDeletionIds(n){return r(n,`agent_deletion_journal`)?t(n,e(n).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,r){return n(e,()=>{let n=[];return{retainedDeletions:a(e,t,r,n),registeredAgentDatabases:i(e,t,!1),deletedAgents:n}},{operationLabel:`agentDeletionJournal.snapshot`})}export{readAgentDatabaseDeletionWorkerSnapshot,readRetainedAgentDeletionIds};