MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / removeOutput

Function removeOutput

ts/workflow-builder/src/utils/functionOperations.ts:161–163  ·  view source on GitHub ↗
(id: string, index: number)

Source from the content-addressed store, hash-verified

159}
160
161export function removeOutput(id: string, index: number): void {
162 mutate(id, (fn) => ({ ...fn, outputs: fn.outputs.filter((_, i) => i !== index) }), true);
163}
164
165/** Set one output's return-value expression. Not a signature change → no version bump. */
166export function setOutputExpression(id: string, index: number, expression: Expression): void {

Callers 1

FunctionConfigPanelFunction · 0.90

Calls 1

mutateFunction · 0.85

Tested by

no test coverage detected