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

Function getBySlugEntry

packages/plugins/toolkits/src/server.ts:297–304  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

295 const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId });
296
297 const getBySlugEntry = (slug: string) =>
298 storage.toolkits
299 .query({ where: { slug } })
300 .pipe(
301 Effect.map(
302 (entries) => entries.find((entry) => entry.owner === "org") ?? entries[0] ?? null,
303 ),
304 );
305
306 const requireToolkit = (toolkitId: string) =>
307 getEntry(toolkitId).pipe(

Callers 3

policyRulesForSlugFunction · 0.85
resolvePolicyForSlugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected