MCPcopy Create free account
hub / github.com/Noumena-Network/code / getRoutineSubtitle

Function getRoutineSubtitle

src/commands/agents-platform/agents-platform.tsx:301–310  ·  view source on GitHub ↗
(routine: RoutineSummary)

Source from the content-addressed store, hash-verified

299}
300
301function getRoutineSubtitle(routine: RoutineSummary): string {
302 const parts = [describeEnabled(routine.enabled)]
303 if (routine.cronExpression) {
304 parts.push(cronToHuman(routine.cronExpression, { utc: true }))
305 }
306 if (routine.nextRunAt) {
307 parts.push(`next ${formatTimestamp(routine.nextRunAt)}`)
308 }
309 return parts.join(' · ')
310}
311
312function listDescription(routine: RoutineSummary): string {
313 const parts = [describeEnabled(routine.enabled)]

Callers 1

AgentsPlatformDialogFunction · 0.85

Calls 3

describeEnabledFunction · 0.85
cronToHumanFunction · 0.85
formatTimestampFunction · 0.70

Tested by

no test coverage detected