import type { NodeDef } from '../../NodeRegistry'; import { asBoolean } from '../../values'; import { bool } from '../shared'; export const Not: NodeDef = { type: 'Not', label: 'Not', category: 'data', description: 'Inverts a boolean.', inputs: [bool('value')], outputs: [bool('result')], params: [], run: (_ctx, inputs) => ({ outputs: { result: !asBoolean(inputs.value) } }), };