MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / listRemoteWorkspaceProfiles

Function listRemoteWorkspaceProfiles

apps/desktop/src/main/index.ts:1578–1590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1576}
1577
1578async function listRemoteWorkspaceProfiles(): Promise<RemoteWorkspaceProfile[]> {
1579 const cfg = await loadConfig()
1580 return await Promise.all(
1581 cfg.remoteWorkspaceProfiles.map(async (profile) => ({
1582 id: profile.id,
1583 name: profile.name,
1584 baseUrl: profile.baseUrl,
1585 vaultPath: profile.vaultPath ?? null,
1586 lastConnectedAt: profile.lastConnectedAt ?? null,
1587 hasCredential: Boolean(await getRemoteWorkspaceSecret(profile.id))
1588 }))
1589 )
1590}
1591
1592async function saveRemoteWorkspaceProfile(
1593 input: RemoteWorkspaceProfileInput & { lastConnectedAt?: number | null }

Callers 1

registerIpcFunction · 0.70

Calls 2

loadConfigFunction · 0.90
getRemoteWorkspaceSecretFunction · 0.90

Tested by

no test coverage detected