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

Function getInput

ts/workflow-core/src/node/methods.ts:246–261  ·  view source on GitHub ↗
(node: NodeData)

Source from the content-addressed store, hash-verified

244 if (out.type === "static") {
245 applyStaticBinding(out.id, out.id, resolveStaticOutputDataType(out, node.arguments), getStaticBinding(args, out.id));
246 } else {
247 const entries = (args[out.id] as OutputDeclaration[] | undefined) ?? [];
248 for (const entry of entries) {
249 if (entry.mode === "emit") {
250 result[entry.uid] = { name: entry.name, dataType: entry.dataType };
251 }
252 }
253 }
254 }
255 return result;
256}
257
258/**
259 * Compute external input requirements for a node instance (debug mode).
260 * Returns the hardware I/O values the node will read during execution.
261 */
262export function getInput(node: NodeData): ExternalInput[] {
263 switch (node.type) {
264 case "ReadPin":

Callers 1

DebugExternalIOPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected