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.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Memory Components hotfix
alaa-eddine1cb3de539e6f
diff --git a/packages/app/src/backend/routes/pages/builder-sidebar.ts b/packages/app/src/backend/routes/pages/builder-sidebar.tsindex 8844eadd..a0eac006 100644--- a/packages/app/src/backend/routes/pages/builder-sidebar.ts+++ b/packages/app/src/backend/routes/pages/builder-sidebar.ts@@ -49,7 +49,7 @@ const baseMenu: Menu = {Memory: [{ name: 'MemoryWriteKeyVal', label: 'Memory Write', icon: 'Memory' },{ name: 'MemoryReadKeyVal', label: 'Memory Read', icon: 'Memory' },- { name: 'MemoryDeleteKey', label: 'Memory Delete', icon: 'Memory' },+ { name: 'MemoryDeleteKeyVal', label: 'Memory Delete', icon: 'Memory' },{ name: 'MemoryWriteObject', label: 'Memory Write Multi', icon: 'Memory' },],Crypto: [diff --git a/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts b/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.tsindex 99193c27..02857da3 100644--- a/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts+++ b/packages/app/src/builder-ui/components/MemoryDeleteKeyVal.class.ts@@ -7,30 +7,39 @@ export class MemoryDeleteKeyVal extends Component {memoryName: {type: 'input',label: 'name',- value: '',- hint: 'Enter memory name',+ value: 'default',validate: `required maxlength=100`,validateMessage: 'Enter a non-empty name, not more than 100 characters.',+ attributes: { 'data-template-vars': 'true' },+ },+ key: {+ type: 'input',+ label: 'Key',+ value: '{{Key}}',+ hint: 'Key to delete from memory',+ validate: `maxlength=50`,+ attributes: { 'data-template-vars': 'true' },},};- // const dataEntries = ['ttl'];- // for (let item of dataEntries) {- // if (typeof this.data[item] === 'undefined') this.data[item] = this.settings[item].value;- // }+ const dataEntries = ['key'];+ for (let item of dataEntries) {+ if (typeof this.data[item] === 'undefined') this.data[item] = this.settings[item].value;+ }//this.data = {};// #endregion// #region [ I/O config ] ==================this.properties.defaultOutputs = ['Key'];- this.properties.defaultInputs = ['Key'];+ this.properties.defaultInputs = [];+ if (this.properties.inputs.length == 0) this.properties.inputs = ['Key'];// #endregion// #region [ Draw config ] ==================//this.drawSettings.showSettings = false;this.drawSettings.iconCSSClass = 'svg-icon Memory ' + this.constructor.name;- this.drawSettings.addOutputButton = null;+ this.drawSettings.addOutputButton = ' ';// this.drawSettings.addInputButton = ' + Entry';this.drawSettings.addInputButton = 'Mem Entry';this.drawSettings.addOutputButtonLabel = ' ';diff --git a/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts b/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.tsindex b61e9592..012a160a 100644--- a/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts+++ b/packages/app/src/builder-ui/components/MemoryReadKeyVal.class.ts@@ -7,10 +7,18 @@ export class MemoryReadKeyVal extends Component {memoryName: {type: 'input',label: 'name',- value: '',- hint: 'Enter memory name',+ value: 'default',validate: `required maxlength=100`,validateMessage: 'Enter a non-empty name, not more than 100 characters.',+ attributes: { 'data-template-vars': 'true' },+ },+ key: {+ type: 'input',+ label: 'Key',+ value: '{{Key}}',+ hint: 'Key to read from memory',+ validate: `maxlength=50`,+ attributes: { 'data-template-vars': 'true' },},// scope: {// type: 'select',@@ -25,24 +33,25 @@ export class MemoryReadKeyVal extends Component {// },};- // const dataEntries = ['ttl'];- // for (let item of dataEntries) {- // if (typeof this.data[item] === 'undefined') this.data[item] = this.settings[item].value;- // }+ const dataEntries = ['key'];+ for (let item of dataEntries) {+ if (typeof this.data[item] === 'undefined') this.data[item] = this.settings[item].value;+ }//this.data = {};// #endregion// #region [ I/O config ] ==================this.properties.defaultOutputs = ['Value'];- this.properties.defaultInputs = ['Key'];+ this.properties.defaultInputs = [];+ if (this.properties.inputs.length == 0) this.properties.inputs = ['Key'];// #endregion// #region [ Draw config ] ==================//this.drawSettings.showSettings = false;this.drawSettings.iconCSSClass = 'svg-icon Memory ' + this.constructor.name;- this.drawSettings.addOutputButton = null;- this.drawSettings.addInputButton = null;+ this.drawSettings.addOutputButton = ' ';+ this.drawSettings.addInputButton = ' ';this.drawSettings.addInputButtonLabel = ' ';// this.drawSettings.addInputButton = ' + Entry';//this.drawSettings.addInputButton = ' + Mem Entry';diff --git a/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts b/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.tsindex 7e598559..a10b0232 100644--- a/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts+++ b/packages/app/src/builder-ui/components/MemoryWriteKeyVal.class.ts@@ -7,16 +7,16 @@ export class MemoryWriteKeyVal extends Component {memoryName: {type: 'input',label: 'Memory Name',- value: '',- hint: 'Enter memory name',+ value: 'default',validate: `required maxlength=100`,validateMessage: 'Enter a non-empty name, not more than 100 characters.',+ attributes: { 'data-template-vars': 'true' },},key: {- type: 'textarea',+ type: 'input',label: 'Key',value: '{{Key}}',- hint: 'Enter key',+ hint: 'Key to store in memory',validate: `maxlength=50`,attributes: { 'data-template-vars': 'true' },},diff --git a/packages/app/src/builder-ui/components/MemoryWriteObject.class.ts b/packages/app/src/builder-ui/components/MemoryWriteObject.class.tsindex e14cafcd..9bf3776c 100644--- a/packages/app/src/builder-ui/components/MemoryWriteObject.class.ts+++ b/packages/app/src/builder-ui/components/MemoryWriteObject.class.ts@@ -11,6 +11,7 @@ export class MemoryWriteObject extends Component {hint: 'Enter memory name',validate: `required maxlength=100`,validateMessage: 'Enter a non-empty name, not more than 100 characters.',+ attributes: { 'data-template-vars': 'true' },},scope: {type: 'select',@@ -62,7 +63,7 @@ export class MemoryWriteObject extends Component {// #endregion// #region [ I/O config ] ==================- this.properties.defaultOutputs = ['Key'];+ this.properties.defaultOutputs = ['Keys'];this.properties.defaultInputs = [];if (this.properties.inputs.length == 0) this.properties.inputs = ['Data'];// #endregion