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

Function makeEntry

packages/plugins/openapi/src/sdk/store.test.ts:23–37  ·  view source on GitHub ↗
(input: {
        readonly owner: "org" | "user";
        readonly collection: string;
        readonly key: string;
        readonly data: T;
      })

Source from the content-addressed store, hash-verified

21 const storageKey = (collection: string, key: string) => `${collection}\0${key}`;
22 const now = new Date();
23 const makeEntry = <T>(input: {
24 readonly owner: "org" | "user";
25 readonly collection: string;
26 readonly key: string;
27 readonly data: T;
28 }): PluginStorageEntry<T> => ({
29 id: storageKey(input.collection, input.key),
30 owner: input.owner,
31 pluginId: "openapi",
32 collection: input.collection,
33 key: input.key,
34 data: input.data,
35 createdAt: now,
36 updatedAt: now,
37 });
38 const pluginStorage: PluginStorageFacade = {
39 collection: () => ({
40 get: () => Effect.succeed(null),

Callers 1

store.test.tsFile · 0.85

Calls 1

storageKeyFunction · 0.85

Tested by

no test coverage detected