MCPcopy Create free account
hub / github.com/Snapchat/Valdi / listContexts

Method listContexts

npm_modules/cli/src/utils/daemonClient.ts:348–351  ·  view source on GitHub ↗
(clientId: string)

Source from the content-addressed store, hash-verified

346 }
347
348 async listContexts(clientId: string): Promise<RemoteContext[]> {
349 const resp = await this.forwardAndWait(clientId, DaemonMsgType.LIST_CONTEXTS_REQUEST, {});
350 return (resp['body'] ?? []) as RemoteContext[];
351 }
352
353 async getContextTree(clientId: string, contextId: string): Promise<unknown> {
354 const resp = await this.forwardAndWait(clientId, DaemonMsgType.GET_CONTEXT_TREE_REQUEST, { id: contextId });

Callers 2

resolveContextIdFunction · 0.80
inspectContextsFunction · 0.80

Calls 1

forwardAndWaitMethod · 0.95

Tested by

no test coverage detected