()
| 16 | import { buildExecuteDescription } from "./description"; |
| 17 | |
| 18 | const memoryProvider = (): CredentialProvider => { |
| 19 | const store = new Map<string, string>(); |
| 20 | return { |
| 21 | key: ProviderKey.make("memory"), |
| 22 | writable: true, |
| 23 | get: (id) => Effect.sync(() => store.get(String(id)) ?? null), |
| 24 | set: (id, value) => Effect.sync(() => void store.set(String(id), value)), |
| 25 | has: (id) => Effect.sync(() => store.has(String(id))), |
| 26 | list: () => |
| 27 | Effect.sync(() => |
| 28 | Array.from(store.keys()).map((key) => ({ |
| 29 | id: ProviderItemId.make(key), |
| 30 | name: key, |
| 31 | })), |
| 32 | ), |
| 33 | }; |
| 34 | }; |
| 35 | |
| 36 | const GITHUB = IntegrationSlug.make("github"); |
| 37 | const SLACK = IntegrationSlug.make("slack"); |
no test coverage detected