MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / providersItems

Function providersItems

packages/core/sdk/src/executor.ts:5296–5303  ·  view source on GitHub ↗
(
      key: ProviderKey,
    )

Source from the content-addressed store, hash-verified

5294 Effect.sync(() => credentialProviderOrder.map((key) => ProviderKey.make(key)));
5295
5296 const providersItems = (
5297 key: ProviderKey,
5298 ): Effect.Effect<readonly ProviderEntry[], StorageFailure> =>
5299 Effect.gen(function* () {
5300 const provider = credentialProviders.get(String(key));
5301 if (!provider || !provider.list) return [];
5302 return yield* provider.list();
5303 });
5304
5305 const providersGet = (
5306 key: ProviderKey,

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected