openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 983 B
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{li as t,oi as n}from"./_4____________________________.js";import{ak as r,fk as i,mk as a,ok as o}from"./_2_____________________________.js";import{i as s,n as c}from"./account-BSv2LwQC.js";import{r as l,t as u}from"./move-keys-dialog-K3_RgkJv.js";async function d(e){let n=e.gateway.snapshot.client;if(!n||!e.config.current.openclawIdEnabled)return;let i=e.gateway.connectionRevision,o=r(e.gateway),c=await n.request(`openclawId.status`,{});if(e.gateway.snapshot.client!==n||e.gateway.connectionRevision!==i||r(e.gateway)!==o||e.gateway.snapshot.phase!==`connected`||!e.config.current.openclawIdEnabled||c.channel!==`local_operator`||c.status.state===`off`||!c.link.linked||!c.link.hostname)return;let u=s();u?await l({client:n,signedIn:u,hostname:c.link.hostname}):a({severity:`info`,message:t(`openclawId.keyRecoverySignIn`)})}function f(){return(f=e((()=>{o(),n(),c(),i(),u()})))()}f();export{d as openSidebarKeyRecovery};