mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-17 04:11:35 +00:00
7 lines
343 B
TypeScript
7 lines
343 B
TypeScript
export function rosterSourceStatus(source: { profiles: string[] | null; error?: string; needsSignIn?: boolean }) {
|
|
return {
|
|
reachable: source.profiles !== null && (!source.error || source.error === 'connect-on-demand'),
|
|
...(source.error ? { error: source.error } : {}),
|
|
...(source.needsSignIn ? { needsSignIn: true } : {})
|
|
}
|
|
}
|