MCPcopy Create free account
hub / github.com/error311/FileRise / formatWorkflowLabel

Function formatWorkflowLabel

public/js/aiChat.js:815–821  ·  view source on GitHub ↗
(workflow)

Source from the content-addressed store, hash-verified

813 }
814
815 const formatWorkflowLabel = (workflow) => {
816 const value = String(workflow || '').trim();
817 if (!value) return 'Workflow';
818 return value
819 .replace(/_/g, ' ')
820 .replace(/\b\w/g, (m) => m.toUpperCase());
821 };
822
823 const formatWorkflowParams = (workflow) => {
824 if (!workflow || typeof workflow !== 'object') return [];

Callers 1

buildWorkflowCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected