continue-custom/core/llm/utils/getSecureID.ts
2025-04-07 22:49:40 -07:00

8 lines
305 B
TypeScript

// Utility function to get or generate UUID for LLM prompts
export function getSecureID(): string {
// Adding a type declaration for the static property
if (!(getSecureID as any).uuid) {
(getSecureID as any).uuid = crypto.randomUUID();
}
return `<!-- SID: ${(getSecureID as any).uuid} -->`;
}