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

Function list

packages/plugins/toolkits/src/server.ts:279–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277 const storage = ctx.storage;
278
279 const list = () =>
280 storage.toolkits
281 .query({ orderBy: [{ field: "name" }] })
282 .pipe(
283 Effect.map((entries) =>
284 entries
285 .map(toolkitToResponse)
286 .sort(
287 (a, b) =>
288 (a.owner === b.owner ? 0 : a.owner === "org" ? -1 : 1) ||
289 a.name.localeCompare(b.name) ||
290 a.slug.localeCompare(b.slug),
291 ),
292 ),
293 );
294
295 const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId });
296

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected