MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / fallbackTitle

Function fallbackTitle

projects/openade-module/src/node.ts:78–81  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

76}
77
78function fallbackTitle(input: string): string {
79 const cleaned = input.replace(/\s+/g, " ").trim()
80 return cleaned.length <= 50 ? cleaned : `${cleaned.slice(0, 50).trim()}...`
81}
82
83function executionIdForTask(taskId: string): string {
84 return `headless-${taskId}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`

Callers 1

startTurnFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected