Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 04:45 UTC
| 1 | import { Effect } from 'effect'; |
| 2 | import type { TrackEvent } from 'src/analytics/types'; |
| 3 | |
| 4 | export const trackedEvents: Array<NonNullable<TrackEvent>> = []; |
| 5 | |
| 6 | export const eventsNamed = (name: string) => trackedEvents.filter(event => event.name === name); |
| 7 | |
| 8 | export const recordTrackedEvent = (event: TrackEvent) => |
| 9 | Effect.sync(() => { |
| 10 | if (event) trackedEvents.push(event); |
| 11 | }); |