import type { NodeDef } from '../../NodeRegistry'; import { any, variableParam } from '../shared'; export const GetVariable: NodeDef = { type: 'GetVariable', label: 'Get variable', category: 'variable', description: "Reads one of this behavior's variables.", inputs: [], outputs: [any('value')], params: [variableParam], run: (ctx, _inputs, params) => ({ outputs: { value: ctx.variables[String(params.variable ?? '')] ?? null } }), };