()
| 1576 | } |
| 1577 | |
| 1578 | async 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 | |
| 1592 | async function saveRemoteWorkspaceProfile( |
| 1593 | input: RemoteWorkspaceProfileInput & { lastConnectedAt?: number | null } |
no test coverage detected