Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Merge branch 'dev' into feat/triggers

alaa-eddine5428fb04c462
diff --cc packages/app/src/builder-ui/components/APIEndpoint.class.ts
index 98e9482a,d87a9d91..0c4cb5c1
--- a/packages/app/src/builder-ui/components/APIEndpoint.class.ts
+++ b/packages/app/src/builder-ui/components/APIEndpoint.class.ts
@@@ -267,30 -270,9 +270,31 @@@ export class APIEndpoint extends Compon
attributes: {
placeholder: `Describe input behavior, formatting (e.g., MM-DD-YY), and requirements`,
},
+ expandable: true,
},
},
+
+ triggerBinding: {
+ type: 'string',
+ default: '',
+ allowDefaultEdit: true,
+
+ editConfig: {
+ type: 'textarea',
+ label: 'Triggers Binding',
+ class: 'm-2 p-2 bg-emerald-50 rounded-lg',
+ fieldCls:
+ 'bg-white border text-gray-900 rounded block w-full outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-normal placeholder:text-sm placeholder:font-normal py-2 px-3 transition-all duration-150 ease-in-out border-gray-300 border-b-gray-500 focus:border-b-2 focus:border-b-blue-500 focus-visible:border-b-2 focus-visible:border-b-blue-500',
+ attributes: {
+ 'data-trigger-vars': 'true',
+ 'data-auto-size': 'true',
+ rows: '2',
+ placeholder: `Map the triggers variables to this input`,
+ }, // Enable auto-size for consistent UX with 2-line default
+ //section: 'Advanced_Options',
+ hintPosition: 'after_label',
+ },
+ },
};
const dataEntries = [
diff --cc packages/app/src/builder-ui/helpers/oauth/oauth-settings.helper.ts
index 30880919,8e268335..476bdb9b
--- a/packages/app/src/builder-ui/helpers/oauth/oauth-settings.helper.ts
+++ b/packages/app/src/builder-ui/helpers/oauth/oauth-settings.helper.ts
@@@ -121,10 -116,9 +121,10 @@@ export class oAuthSettings
id: 'editOAuthConnection',
cls: 'mt-[7px] !mr-[24px] !pt-[10px]',
visible: () =>
- this.component.data.oauth_con_id && this.component.data.oauth_con_id !== 'None',
+ this.component.data[this.setting_name] &&
+ this.component.data[this.setting_name] !== 'None',
events: {
- click: () => this.handleOAuthConnectionAction(),
+ click: () => this.handleOAuthConnectionAction(this.component.data.oauth_con_id),
},
},
],