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

Function toEntry

packages/plugins/encrypted-secrets/src/index.test.ts:21–30  ·  view source on GitHub ↗
(row: { owner: Owner; key: string; collection: string; data: unknown })

Source from the content-addressed store, hash-verified

19 const rows = new Map<string, { owner: Owner; key: string; collection: string; data: unknown }>();
20 const composite = (collection: string, key: string) => `${collection} ${key}`;
21 const toEntry = (row: { owner: Owner; key: string; collection: string; data: unknown }) => ({
22 id: composite(row.collection, row.key),
23 owner: row.owner,
24 pluginId: "encryptedSecrets",
25 collection: row.collection,
26 key: row.key,
27 data: row.data,
28 createdAt: new Date(0),
29 updatedAt: new Date(0),
30 });
31 const facade = {
32 get: (input: { collection: string; key: string }) =>
33 Effect.sync(() => {

Callers 1

makeFakeStorageFunction · 0.70

Calls 1

compositeFunction · 0.70

Tested by

no test coverage detected