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

Function providersItems

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

Source from the content-addressed store, hash-verified

4286 Effect.sync(() => credentialProviderOrder.map((key) => ProviderKey.make(key)));
4287
4288 const providersItems = (
4289 key: ProviderKey,
4290 ): Effect.Effect<readonly ProviderEntry[], StorageFailure> =>
4291 Effect.gen(function* () {
4292 const provider = credentialProviders.get(String(key));
4293 if (!provider || !provider.list) return [];
4294 return yield* provider.list();
4295 });
4296
4297 const providersGet = (
4298 key: ProviderKey,

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected