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

Function providersItems

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

Source from the content-addressed store, hash-verified

5977 Effect.sync(() => credentialProviderOrder.map((key) => ProviderKey.make(key)));
5978
5979 const providersItems = (
5980 key: ProviderKey,
5981 ): Effect.Effect<readonly ProviderEntry[], StorageFailure> =>
5982 Effect.gen(function* () {
5983 const provider = credentialProviders.get(String(key));
5984 if (!provider || !provider.list) return [];
5985 return yield* provider.list();
5986 });
5987
5988 const providersGet = (
5989 key: ProviderKey,

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected