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

Function getVisible

packages/core/sdk/src/executor.ts:1173–1177  ·  view source on GitHub ↗
(collection: string, key: string)

Source from the content-addressed store, hash-verified

1171 });
1172
1173 const getVisible = <T>(collection: string, key: string) =>
1174 input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe(
1175 Effect.map((rows) => sortByOwnerPrecedence(rows)[0] ?? null),
1176 Effect.map((row) => (row ? pluginStorageEntryFromRow<T>(row) : null)),
1177 );
1178
1179 const getForOwnerImpl = <T>(owner: Owner, collection: string, key: string) =>
1180 input.core

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 3

whereForFunction · 0.85
sortByOwnerPrecedenceFunction · 0.85

Tested by

no test coverage detected