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

Function formatWorkflowList

src/commands/workflows/workflows.ts:33–45  ·  view source on GitHub ↗
(definitions: WorkflowDefinition[])

Source from the content-addressed store, hash-verified

31}
32
33function formatWorkflowList(definitions: WorkflowDefinition[]): string {
34 const lines = ['Available workflow commands:']
35
36 for (const { command } of definitions) {
37 if (command.type !== 'prompt') {
38 continue
39 }
40 lines.push(`- ${formatWorkflowSummary(command)}`)
41 }
42
43 lines.push('', 'Use /workflows <name> to inspect a workflow.')
44 return lines.join('\n')
45}
46
47function formatWorkflowDetail(definition: WorkflowDefinition): string {
48 const { command, filePath, baseDir } = definition

Callers 1

callFunction · 0.85

Calls 1

formatWorkflowSummaryFunction · 0.85

Tested by

no test coverage detected