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

Function getBySlugEntry

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

Source from the content-addressed store, hash-verified

249 const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId });
250
251 const getBySlugEntry = (slug: string) =>
252 storage.toolkits
253 .query({ where: { slug } })
254 .pipe(
255 Effect.map(
256 (entries) => entries.find((entry) => entry.owner === "org") ?? entries[0] ?? null,
257 ),
258 );
259
260 const requireToolkit = (toolkitId: string) =>
261 getEntry(toolkitId).pipe(

Callers 3

policyRulesForSlugFunction · 0.85
resolvePolicyForSlugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected