MCPcopy Create free account
hub / github.com/Eversmile12/sharedcontext / loadRemoteConversations

Function loadRemoteConversations

src/cli/list.ts:168–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168async function loadRemoteConversations(): Promise<Conversation[]> {
169 const passphrase = keychainLoad();
170 if (!passphrase || !existsSync(getIdentityPath())) {
171 return [];
172 }
173
174 try {
175 const { encryptionKey, walletAddress } = resolveIdentity(passphrase);
176 return await pullConversations(walletAddress, encryptionKey);
177 } catch {
178 return [];
179 }
180}
181
182function loadSharedConversations(): DiscoveredConversation[] {
183 const dbPath = getDbPath();

Callers 1

discoverConversationsFunction · 0.85

Calls 4

keychainLoadFunction · 0.85
getIdentityPathFunction · 0.85
resolveIdentityFunction · 0.85
pullConversationsFunction · 0.85

Tested by

no test coverage detected