MCPcopy Create free account
hub / github.com/winfunc/opcode / generateId

Method generateId

src/lib/hooksManager.ts:246–248  ·  view source on GitHub ↗

* Generate a unique ID for hooks/matchers/commands

()

Source from the content-addressed store, hash-verified

244 * Generate a unique ID for hooks/matchers/commands
245 */
246 static generateId(): string {
247 return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
248 }
249}

Callers 5

HooksEditorFunction · 0.80
addMatcherFunction · 0.80
addDirectCommandFunction · 0.80
applyTemplateFunction · 0.80
addCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected