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

Function providersItems

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

Source from the content-addressed store, hash-verified

3330 Effect.sync(() => credentialProviderOrder.map((key) => ProviderKey.make(key)));
3331
3332 const providersItems = (
3333 key: ProviderKey,
3334 ): Effect.Effect<readonly ProviderEntry[], StorageFailure> =>
3335 Effect.gen(function* () {
3336 const provider = credentialProviders.get(String(key));
3337 if (!provider || !provider.list) return [];
3338 return yield* provider.list();
3339 });
3340
3341 const providersGet = (
3342 key: ProviderKey,

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected