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

Function getBySlugEntry

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

Source from the content-addressed store, hash-verified

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

Callers 3

policyRulesForSlugFunction · 0.85
resolvePolicyForSlugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected