MCPcopy Create free account
hub / github.com/Zleap-AI/SAG / addProcessStep

Function addProcessStep

web/src/App.tsx:646–655  ·  view source on GitHub ↗
(step: Omit<ProcessStep, "id"> & { id?: string })

Source from the content-addressed store, hash-verified

644 }
645
646 function addProcessStep(step: Omit<ProcessStep, "id"> & { id?: string }) {
647 setProcessSteps((current) => [...current, {
648 id: step.id ?? makeStepId("step"),
649 title: step.title,
650 detail: step.detail,
651 status: step.status,
652 payload: step.payload,
653 durationMs: step.durationMs
654 }]);
655 }
656
657 function upsertProcessStep(step: ProcessStep) {
658 setProcessSteps((current) => {

Callers 4

handleMcpStreamEventFunction · 0.85
handleSearchStreamEventFunction · 0.85
runSearchFunction · 0.85
sendMcpMessageFunction · 0.85

Calls 1

makeStepIdFunction · 0.85

Tested by

no test coverage detected