Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit f794959

Browse files
Minor changes to improve usability from AI Agents
1 parent c6d2c8d commit f794959

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

nodes/YepCode/YepCode.node.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export class YepCode implements INodeType {
1616
icon: 'file:yepcode.svg',
1717
group: ['output'],
1818
version: 1,
19-
description: 'Invoke YepCode processes',
19+
description:
20+
'YepCode lets you run full processes or dynamic scripts using Node.js or Python, with support for any NPM or PyPI dependency. All in a secure, sandboxed environment.',
2021
subtitle: '={{$parameter["operation"] + ": " + $parameter["process"]}}',
2122
defaults: {
2223
name: 'YepCode',

nodes/YepCode/actions/runCode.operation.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const properties: INodeProperties[] = [
2121
"const isOdd = require('is-odd');\n\nconst number = yepcode.context.parameters?.number || 3;\nconst result = isOdd(number);\nreturn { message: `${number} is ${result ? 'odd' : 'even'}` };",
2222
description:
2323
"The source's code to execute. It can be a JavaScript or Python code, and it will be executed in the YepCode environment. You can import any NPM or PyPI package and it will be installed automatically (see <a href='https://yepcode.io/docs/processes/source-code'>YepCode docs</a> for more details).",
24-
noDataExpression: true,
2524
},
2625
{
2726
displayName: 'Show Advanced Options',
@@ -36,6 +35,10 @@ const properties: INodeProperties[] = [
3635
type: 'options',
3736
description: "The source's code language. Optional as we'll try to detect it automatically.",
3837
options: [
38+
{
39+
name: 'Auto',
40+
value: '',
41+
},
3942
{
4043
name: 'JavaScript',
4144
value: 'javascript',
@@ -45,7 +48,7 @@ const properties: INodeProperties[] = [
4548
value: 'python',
4649
},
4750
],
48-
default: 'javascript',
51+
default: '',
4952
displayOptions: {
5053
show: {
5154
showAdvancedForRunCode: [true],
@@ -113,6 +116,9 @@ export async function execute(
113116
const showAdvanced = this.getNodeParameter('showAdvancedForRunCode', i) as boolean;
114117
if (showAdvanced) {
115118
options.language = this.getNodeParameter('language', i) as string;
119+
if (options.language === '') {
120+
delete options.language;
121+
}
116122
options.removeOnDone = this.getNodeParameter('removeOnDone', i) as boolean;
117123
options.initiatedBy = this.getNodeParameter('initiatedBy', i) as string;
118124
options.comment = this.getNodeParameter('comment', i) as string;
@@ -134,7 +140,7 @@ export async function execute(
134140
},
135141
};
136142

137-
const execution = await this.helpers.httpRequest(requestOptions);
143+
const execution = await this.helpers.httpRequest(requestOptions);
138144
const { id, logs, processId, status, returnValue, error, timeline, parameters, comment } =
139145
execution;
140146
returnData.push({

0 commit comments

Comments
 (0)