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

Function providersItems

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

Source from the content-addressed store, hash-verified

3856 Effect.sync(() => credentialProviderOrder.map((key) => ProviderKey.make(key)));
3857
3858 const providersItems = (
3859 key: ProviderKey,
3860 ): Effect.Effect<readonly ProviderEntry[], StorageFailure> =>
3861 Effect.gen(function* () {
3862 const provider = credentialProviders.get(String(key));
3863 if (!provider || !provider.list) return [];
3864 return yield* provider.list();
3865 });
3866
3867 const providersGet = (
3868 key: ProviderKey,

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected