@@ -5,6 +5,7 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
55import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime" ;
66import { buildOutboundBaseSessionKey , type RoutePeer } from "openclaw/plugin-sdk/routing" ;
77import {
8+ buildComputedAccountStatusSnapshot ,
89 collectStatusIssuesFromLastError ,
910 DEFAULT_ACCOUNT_ID ,
1011 formatTrimmedAllowFromEntries ,
@@ -206,21 +207,21 @@ export const imessagePlugin: ChannelPlugin<ResolvedIMessageAccount> = {
206207 } ) ,
207208 probeAccount : async ( { timeoutMs } ) =>
208209 await ( await loadIMessageChannelRuntime ( ) ) . probeIMessageAccount ( timeoutMs ) ,
209- buildAccountSnapshot : ( { account, runtime, probe } ) => ( {
210- accountId : account . accountId ,
211- name : account . name ,
212- enabled : account . enabled ,
213- configured : account . configured ,
214- running : runtime ?. running ?? false ,
215- lastStartAt : runtime ?. lastStartAt ?? null ,
216- lastStopAt : runtime ?. lastStopAt ?? null ,
217- lastError : runtime ?. lastError ?? null ,
218- cliPath : runtime ?. cliPath ?? account . config . cliPath ?? null ,
219- dbPath : runtime ?. dbPath ?? account . config . dbPath ?? null ,
220- probe ,
221- lastInboundAt : runtime ?. lastInboundAt ?? null ,
222- lastOutboundAt : runtime ?. lastOutboundAt ?? null ,
223- } ) ,
210+ buildAccountSnapshot : ( { account, runtime, probe } ) =>
211+ buildComputedAccountStatusSnapshot (
212+ {
213+ accountId : account . accountId ,
214+ name : account . name ,
215+ enabled : account . enabled ,
216+ configured : account . configured ,
217+ runtime ,
218+ probe ,
219+ } ,
220+ {
221+ cliPath : runtime ?. cliPath ?? account . config . cliPath ?? null ,
222+ dbPath : runtime ?. dbPath ?? account . config . dbPath ?? null ,
223+ } ,
224+ ) ,
224225 resolveAccountState : ( { enabled } ) => ( enabled ? "enabled" : "disabled" ) ,
225226 } ,
226227 gateway : {
0 commit comments