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

Function memoryProvider

packages/core/sdk/src/policies.test.ts:268–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266 Effect.succeed(ElicitationResponse.make({ action: "decline" }));
267
268const memoryProvider = (): CredentialProvider => {
269 const store = new Map<string, string>();
270 return {
271 key: ProviderKey.make("memory"),
272 writable: true,
273 get: (id) => Effect.sync(() => store.get(String(id)) ?? null),
274 set: (id, value) => Effect.sync(() => void store.set(String(id), value)),
275 };
276};
277
278const VERCEL = IntegrationSlug.make("vercel");
279const GITHUB = IntegrationSlug.make("github");

Callers 1

policies.test.tsFile · 0.70

Calls 3

setMethod · 0.80
syncMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected