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.

remove unnecessary event handler

alaa-eddinea1f1320a49bc
diff --git a/packages/app/src/builder-ui/components/APIEndpoint.class.ts b/packages/app/src/builder-ui/components/APIEndpoint.class.ts
index af3a5bf2..80cc4091 100644
--- a/packages/app/src/builder-ui/components/APIEndpoint.class.ts
+++ b/packages/app/src/builder-ui/components/APIEndpoint.class.ts
@@ -469,6 +469,7 @@ export class APIEndpoint extends Component {
if (prop === 'name') {
const oldName = oldValue;
const newName = newValue;
+ //!\\ don't enable this line for now, it may introduce a breaking change
//const newOutputName = `_.${newName}`;
const newOutputName = newName;
const inputName = inputDiv.getAttribute('smt-name');
@@ -504,23 +505,6 @@ export class APIEndpoint extends Component {
}
}
});
-
- this.addEventListener('inputEditorReady', (dialog) => {
- //try to find the triggerBinding field by name
- const triggerBinding = dialog.querySelector('.form-box [name="triggerBinding"]');
- if (!triggerBinding) return;
-
- const connectedToTriggers = this.workspace.agent.data.connections
- .filter((c) => c.targetId === this.uid)
- .map((c) => c.sourceId);
- if (connectedToTriggers.length > 0) {
- triggerBinding.classList.remove('hidden');
- triggerBinding.setAttribute('data-triggers', connectedToTriggers.join(','));
- } else {
- triggerBinding.classList.add('hidden');
- triggerBinding.removeAttribute('data-triggers');
- }
- });
await delay(50);
this.advancedModeActions(this.isOnAdvancedMode);
}
@@ -546,6 +530,7 @@ export class APIEndpoint extends Component {
const outputDiv: any = await super.addOutput(
outputParent,
+ //!\\ don't enable this line for now, it may introduce a breaking change
//`_.${name}`,
name,
{