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

Function providersItems

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

Source from the content-addressed store, hash-verified

3314 Effect.sync(() => credentialProviderOrder.map((key) => ProviderKey.make(key)));
3315
3316 const providersItems = (
3317 key: ProviderKey,
3318 ): Effect.Effect<readonly ProviderEntry[], StorageFailure> =>
3319 Effect.gen(function* () {
3320 const provider = credentialProviders.get(String(key));
3321 if (!provider || !provider.list) return [];
3322 return yield* provider.list();
3323 });
3324
3325 const providersGet = (
3326 key: ProviderKey,

Callers 1

createExecutorFunction · 0.85

Calls 2

getMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected