Elffuss BraidHub

kikocis/continue public

main · 332 BRawPermalink
1import { v4 as uuidv4 } from "uuid";
2
3// Utility function to get or generate UUID for LLM prompts
4export function getSecureID(): string {
5 // Adding a type declaration for the static property
6 if (!(getSecureID as any).uuid) {
7 (getSecureID as any).uuid = uuidv4();
8 }
9 return `<!-- SID: ${(getSecureID as any).uuid} -->`;
10}