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

Function applyStaticBinding

ts/workflow-core/src/node/methods.ts:206–215  ·  view source on GitHub ↗
(key: string, defaultName: string, dataType: NodeOutput["dataType"], binding: OutputBinding | undefined)

Source from the content-addressed store, hash-verified

204 return result;
205}
206
207/**
208 * Compute the effective outputs the node emits to variable scope: available outputs
209 * filtered to active emit bindings only (inactive bindings and active assign bindings
210 * contribute nothing — assign routes to an existing variable, inactive is discarded).
211 * Emit bindings carry a user-chosen name that overrides the output's default name (the id).
212 *
213 * Binding lookup:
214 * - Static outputs (incl. FunctionCall returns): `node.arguments[out.id]`
215 * - List outputs: each entry is already a declaration; emit entries contribute
216 * directly (no separate binding), assign entries contribute nothing
217 */
218export function getNodeOutput(node: NodeData): Record<string, NodeOutput> {

Callers 1

getNodeOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected