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

Function entry

packages/plugins/apps/src/plugin/store.test.ts:14–28  ·  view source on GitHub ↗
(input: {
  owner: "org" | "user";
  collection: string;
  key: string;
  data: T;
})

Source from the content-addressed store, hash-verified

12import { descriptorCollection, makeAppsStore, toolCollection } from "./store";
13
14const entry = <T>(input: {
15 owner: "org" | "user";
16 collection: string;
17 key: string;
18 data: T;
19}): PluginStorageEntry<T> => ({
20 id: `${input.collection}:${input.key}`,
21 owner: input.owner,
22 pluginId: "apps",
23 collection: input.collection,
24 key: input.key,
25 data: input.data,
26 createdAt: new Date(0),
27 updatedAt: new Date(0),
28});
29
30const makeMemoryPluginStorage = (): PluginStorageFacade => {
31 const rows = new Map<string, PluginStorageEntry<unknown>>();

Callers 2

putFunction · 0.85
makeMemoryPluginStorageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected