Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 9 lines 276 Bytes
Raw
1 import { pipe, Effect, String } from 'effect';
2 import { getVersion } from 'src/effects/version';
3
4 export const sanitize = (str: string) =>
5 Effect.gen(function* () {
6 const version = yield* getVersion;
7
8 return pipe(str, String.replaceAll(version, '<VERSION>'));
9 });