/** * Echo — returns the input string. Second activate-now action (no backend). * @module creates/echo */ const perform = async (_z, bundle) => { const text = String(bundle.inputData.text ?? ''); return { text, length: text.length, mode: 'local' }; }; module.exports = { key: 'echo', noun: 'Echo', display: { label: 'Echo Text', description: 'Returns the text you send. No API required.', }, operation: { cleanInputData: false, inputFields: [{ key: 'text', label: 'Text', type: 'string', required: true }], perform, sample: { text: 'hello', length: 5, mode: 'local' }, outputFields: [ { key: 'text', type: 'string' }, { key: 'length', type: 'integer' }, { key: 'mode', type: 'string' }, ], }, };