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
rollout v2 datapools
Ahmed Essam4f270b3aa623
diff --git a/packages/app/src/builder-ui/components/Component.class/component-documentation.ts b/packages/app/src/builder-ui/components/Component.class/component-documentation.tsindex 546aa337..1cae2c73 100644--- a/packages/app/src/builder-ui/components/Component.class/component-documentation.ts+++ b/packages/app/src/builder-ui/components/Component.class/component-documentation.ts@@ -192,14 +192,14 @@ export const COMPONENT_DOCUMENTATION: Record<string, ComponentDocumentation> = {DataSourceIndexer: {description:- 'Adds or updates content in the agent’s knowledge base. Stores text and optional metadata in a selected namespace with a stable source ID, enabling later search, updates, or deletion.',+ 'Adds or updates content in the agent’s knowledge base. Stores text and optional metadata in a selected data space with a stable source ID, enabling later search, updates, or deletion.',docsLink:'https://smythos.com/docs/agent-studio/components/rag-data/rag-remember/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-remember&utm_content=component-header',},DataSourceCleaner: {description:- 'Deletes a specific source from a selected namespace using its exact source identifier. Operation is permanent and intended for data hygiene and compliance workflows.',+ 'Deletes a specific source from a data space using its exact source identifier. Operation is permanent and intended for data hygiene and compliance workflows.',docsLink:'https://smythos.com/docs/agent-studio/components/rag-data/rag-forget/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-forget&utm_content=source-identifier',},diff --git a/packages/app/src/builder-ui/components/DataSourceCleaner.class.ts b/packages/app/src/builder-ui/components/DataSourceCleaner.class.tsindex 1f82300a..bb440dd7 100644--- a/packages/app/src/builder-ui/components/DataSourceCleaner.class.ts+++ b/packages/app/src/builder-ui/components/DataSourceCleaner.class.ts@@ -1,54 +1,30 @@-import { builderStore } from '@src/shared/state_stores/builder/store';import { delay } from '../utils/general.utils';import { Component } from './Component.class';// @ts-ignoreexport class DataSourceCleaner extends Component {private namespaces: string[] = [];- private isNewComponent: boolean = false;protected async prepare(): Promise<any> {- this.isNewComponent = Object.keys(this.data).length === 0;- const eligibleForV2 =- builderStore.getState().serverStatus.edition === 'enterprise' &&- !window.location.hostname.includes('smythos.com');-- const componentVersion =- this.data.version ?? (this.isNewComponent && eligibleForV2 ? 'v2' : 'v1');-- if (this.isNewComponent && eligibleForV2) {- this.data.version = componentVersion;- }-this.updateSettings();}protected async updateSettings() {- if (!this.data.version || this.data.version === 'v1') {- const result = await fetch(- `${this.workspace.server}/api/component/DataSourceIndexer/namespaces`,- );- const namespaces = await result.json();- this.namespaces = namespaces.map((item) => ({ value: item.id, text: item.name }));- this.settings.namespaceId.options = this.namespaces;- if (this.settingsOpen) this.refreshSettingsSidebar();- } else if (this.data.version === 'v2') {- const result = await fetch(- `${this.workspace.server}/api/component/DataSourceIndexer/v2/namespaces`,- );- const namespaces = await result.json();- this.namespaces = namespaces.map((item) => ({ value: item.label, text: item.label }));- this.settings.namespaceId.options = this.namespaces;- if (this.settingsOpen) this.refreshSettingsSidebar();- }+ const result = await fetch(+ `${this.workspace.server}/api/component/DataSourceIndexer/v2/namespaces`,+ );+ const namespaces = await result.json();+ this.namespaces = namespaces.map((item) => ({ value: item.label, text: item.label }));+ this.settings.namespaceId.options = this.namespaces;+ if (this.settingsOpen) this.refreshSettingsSidebar();}protected async init() {this.settings = {namespaceId: {type: 'select',- label: 'namespace',- help: 'Select the namespace that contains the source to remove.',+ label: 'data space',+ help: 'Select the data space that contains the source to remove.',value: '',options: this.namespaces,},@@ -94,7 +70,7 @@ export class DataSourceCleaner extends Component {if (!namespaces[nsId]) {console.log('Namespace Missing', nsId);this.addComponentMessage(- `Missing Namespace<br /><a href="/data" target="_blank" style="color:#33b;text-decoration:underline">Create one</a> then configure it for this component`,+ `Missing Data Space<br /><a href="/data" target="_blank" style="color:#33b;text-decoration:underline">Create one</a> then configure it for this component`,'alert',);}diff --git a/packages/app/src/builder-ui/components/DataSourceIndexer.class.ts b/packages/app/src/builder-ui/components/DataSourceIndexer.class.tsindex d26bdce1..88d19509 100644--- a/packages/app/src/builder-ui/components/DataSourceIndexer.class.ts+++ b/packages/app/src/builder-ui/components/DataSourceIndexer.class.ts@@ -1,55 +1,31 @@-import { builderStore } from '@src/shared/state_stores/builder/store';import { delay } from '../utils/general.utils';import { Component } from './Component.class';// @ts-ignoreexport class DataSourceIndexer extends Component {private namespaces: string[] = [];- private isNewComponent: boolean = false;protected async prepare(): Promise<any> {- this.isNewComponent = Object.keys(this.data).length === 0;- const eligibleForV2 =- builderStore.getState().serverStatus.edition === 'enterprise' &&- !window.location.hostname.includes('smythos.com');-- const componentVersion =- this.data.version ?? (this.isNewComponent && eligibleForV2 ? 'v2' : 'v1');-- if (this.isNewComponent && eligibleForV2) {- this.data.version = componentVersion;- }-this.updateSettings();return new Promise((resolve) => resolve(true));}protected async updateSettings() {- if (!this.data.version || this.data.version === 'v1') {- const result = await fetch(- `${this.workspace.server}/api/component/DataSourceIndexer/namespaces`,- );- const namespaces = await result.json();- this.namespaces = namespaces.map((item) => ({ value: item.id, text: item.name }));- this.settings.namespace.options = this.namespaces;- if (this.settingsOpen) this.refreshSettingsSidebar();- } else if (this.data.version === 'v2') {- const result = await fetch(- `${this.workspace.server}/api/component/DataSourceIndexer/v2/namespaces`,- );- const namespaces = await result.json();- this.namespaces = namespaces.map((item) => ({ value: item.label, text: item.label }));- this.settings.namespace.options = this.namespaces;- if (this.settingsOpen) this.refreshSettingsSidebar();- }+ const result = await fetch(+ `${this.workspace.server}/api/component/DataSourceIndexer/v2/namespaces`,+ );+ const namespaces = await result.json();+ this.namespaces = namespaces.map((item) => ({ value: item.label, text: item.label }));+ this.settings.namespace.options = this.namespaces;+ if (this.settingsOpen) this.refreshSettingsSidebar();}protected async init() {this.settings = {namespace: {type: 'select',- label: 'namespace',+ label: 'data space',help: 'Select the memory bucket where this source is stored; keep staging and production separate.',options: this.namespaces,},@@ -86,22 +62,18 @@ export class DataSourceIndexer extends Component {},},- ...(this.data.version === 'v2'- ? {- chunkSize: {- type: 'input',- label: 'chunk size',- help: 'The size of the chunks to split the data into.',- value: 1000,- },- chunkOverlap: {- type: 'input',- label: 'chunk overlap',- help: 'The overlap of the chunks to split the data into.',- value: 100,- },- }- : {}),+ chunkSize: {+ type: 'input',+ label: 'chunk size',+ help: 'The size of the chunks to split the data into.',+ value: 1000,+ },+ chunkOverlap: {+ type: 'input',+ label: 'chunk overlap',+ help: 'The overlap of the chunks to split the data into.',+ value: 100,+ },};const dataEntries = ['namespace'];@@ -134,7 +106,7 @@ export class DataSourceIndexer extends Component {if (!namespaces[nsId]) {console.log('Namespace Missing', nsId);this.addComponentMessage(- `Missing Namespace<br /><a href="/data" target="_blank" style="color:#33b;text-decoration:underline">Create one</a> then configure it for this component`,+ `Missing Data Space<br /><a href="/data" target="_blank" style="color:#33b;text-decoration:underline">Create one</a> then configure it for this component`,'alert',);}diff --git a/packages/app/src/builder-ui/components/DataSourceLookup.class.ts b/packages/app/src/builder-ui/components/DataSourceLookup.class.tsindex fb9786bc..71c4ec3d 100644--- a/packages/app/src/builder-ui/components/DataSourceLookup.class.ts+++ b/packages/app/src/builder-ui/components/DataSourceLookup.class.ts@@ -1,54 +1,32 @@-import { builderStore } from '@src/shared/state_stores/builder/store';import { delay } from '../utils/general.utils';import { Component } from './Component.class';// @ts-ignoreexport class DataSourceLookup extends Component {private namespaces: string[] = [];- private isNewComponent: boolean = false;- private componentVersion: string = 'v1';protected async prepare(): Promise<any> {- this.isNewComponent = Object.keys(this.data).length === 0;- const eligibleForV2 =- builderStore.getState().serverStatus.edition === 'enterprise' &&- !window.location.hostname.includes('smythos.com');+ // this.isNewComponent = Object.keys(this.data).length === 0;- const componentVersion =- this.data.version ?? (this.isNewComponent && eligibleForV2 ? 'v2' : 'v1');-- if (this.isNewComponent && eligibleForV2) {- this.data.version = componentVersion;- }this.updateSettings();}protected async updateSettings() {- if (!this.data.version || this.data.version === 'v1') {- const result = await fetch(- `${this.workspace.server}/api/component/DataSourceIndexer/namespaces`,- );- const namespaces = await result.json();- this.namespaces = namespaces.map((item) => ({ value: item.id, text: item.name }));- this.settings.namespace.options = this.namespaces;- if (this.settingsOpen) this.refreshSettingsSidebar();- } else if (this.data.version === 'v2') {- const result = await fetch(- `${this.workspace.server}/api/component/DataSourceIndexer/v2/namespaces`,- );- const namespaces = await result.json();- this.namespaces = namespaces.map((item) => ({ value: item.label, text: item.label }));- this.settings.namespace.options = this.namespaces;- if (this.settingsOpen) this.refreshSettingsSidebar();- }+ const result = await fetch(+ `${this.workspace.server}/api/component/DataSourceIndexer/v2/namespaces`,+ );+ const namespaces = await result.json();+ this.namespaces = namespaces.map((item) => ({ value: item.label, text: item.label }));+ this.settings.namespace.options = this.namespaces;+ if (this.settingsOpen) this.refreshSettingsSidebar();}protected async init() {this.settings = {namespace: {type: 'select',- label: 'namespace',- help: 'Select the memory bucket to search, matching the namespace used when indexing. <a href="https://smythos.com/docs/agent-studio/components/rag-data/rag-search/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-search&utm_content=namespace#step-1-define-the-search-scope" target="_blank" class="text-blue-600 hover:text-blue-800">See namespace mapping</a>',+ label: 'Data Space',+ help: 'Select the memory bucket to search, matching the data space used when indexing. <a href="https://smythos.com/docs/agent-studio/components/rag-data/rag-search/?utm_source=studio&utm_medium=tooltip&utm_campaign=rag-search&utm_content=namespace#step-1-define-the-search-scope" target="_blank" class="text-blue-600 hover:text-blue-800">See namespace mapping</a>',options: this.namespaces,},topK: {@@ -112,7 +90,7 @@ export class DataSourceLookup extends Component {if (!namespaces[nsId]) {console.log('Namespace Missing', nsId);this.addComponentMessage(- `Missing Namespace<br /><a href="/data" target="_blank" style="color:#33b;text-decoration:underline">Create one</a> then configure it for this component`,+ `Missing Data Space<br /><a href="/data" target="_blank" style="color:#33b;text-decoration:underline">Create one</a> then configure it for this component`,'alert',);}diff --git a/packages/app/src/react/app/routeMap.tsx b/packages/app/src/react/app/routeMap.tsxindex e651badf..271fb7ca 100644--- a/packages/app/src/react/app/routeMap.tsx+++ b/packages/app/src/react/app/routeMap.tsx@@ -62,18 +62,8 @@ export const routeMap: IPageRoute[] = [component: VaultPage,layoutOptions: { sidebar: true, topMenu: true },},- {- title: 'Data Pool',- path: 'data-pool',- component: DataPoolPage,- layoutOptions: { sidebar: true, topMenu: true, background: 'white' },- },- {- title: 'Datasources',- path: 'data-pool/:namespaceLabel/datasources',- component: DatasourcesPage,- layoutOptions: { sidebar: true, topMenu: true, background: 'white' },- },+ { path: '/data', component: DataPoolPage, title: 'Data Pool' },+ { path: '/data/:namespaceLabel/datasources', component: DatasourcesPage, title: 'Datasources' },];export const routeNames = routeMap.map((route) => route.path);diff --git a/packages/app/src/react/features/data-pool/components/NamespaceTable.tsx b/packages/app/src/react/features/data-pool/components/NamespaceTable.tsxindex 572560fc..b1f57ff3 100644--- a/packages/app/src/react/features/data-pool/components/NamespaceTable.tsx+++ b/packages/app/src/react/features/data-pool/components/NamespaceTable.tsx@@ -82,7 +82,7 @@ export const NamespaceTable: FC<NamespaceTableProps> = ({ namespaces, onDelete }key={namespace.label}className="border-b hover:bg-gray-100 cursor-pointer transition-colors text-left"onClick={() =>- navigate(`/data-pool/${encodeURIComponent(namespace.label)}/datasources`)+ navigate(`/data/${encodeURIComponent(namespace.label)}/datasources`)}>{/* Name with Embeddings Badge */}diff --git a/packages/app/src/react/features/data-pool/pages/DatasourcesPage.tsx b/packages/app/src/react/features/data-pool/pages/DatasourcesPage.tsxindex 63c7487f..ae94230d 100644--- a/packages/app/src/react/features/data-pool/pages/DatasourcesPage.tsx+++ b/packages/app/src/react/features/data-pool/pages/DatasourcesPage.tsx@@ -151,7 +151,7 @@ const DatasourcesPage: FC = () => {<Link to="/">Home</Link></Breadcrumb.Item><Breadcrumb.Item>- <Link to="/data-pool">Data Spaces</Link>+ <Link to="/data">Data Spaces</Link></Breadcrumb.Item><Breadcrumb.Item>{namespaceLabel}</Breadcrumb.Item></Breadcrumb>diff --git a/packages/app/src/react/shared/components/sidebar/Sidebar.tsx b/packages/app/src/react/shared/components/sidebar/Sidebar.tsxindex bfd2784b..3ebcb7f8 100644--- a/packages/app/src/react/shared/components/sidebar/Sidebar.tsx+++ b/packages/app/src/react/shared/components/sidebar/Sidebar.tsx@@ -39,7 +39,7 @@ export const Sidebar: React.FC = () => {access['/templates'] = getPageAccess('/templates')?.read;access['/domains'] = getPageAccess('/domains')?.read;access['/data/'] = getPageAccess('/data')?.read;- access['/data-pool'] = getPageAccess('/data')?.read;+ // access['/data-pool'] = getPageAccess('/data')?.read;// access['/data-pool'] = getPageAccess('/data-pool')?.read || true; // Default to true for community editionaccess['/analytics'] = getPageAccess('/analytics')?.read;access['/teams/settings'] = getPageAccess('/teams/members')?.read;diff --git a/packages/app/src/react/shared/constants/navigation.ts b/packages/app/src/react/shared/constants/navigation.tsindex aa99a18a..9268e540 100644--- a/packages/app/src/react/shared/constants/navigation.ts+++ b/packages/app/src/react/shared/constants/navigation.ts@@ -1,7 +1,6 @@import { plugins, PluginTarget, PluginType } from '@src/react/shared/plugins/Plugins';import { SMYTHOS_DOCS_URL } from '@src/shared/constants/general';-import { builderStore } from '@src/shared/state_stores/builder/store';-import { BookIcon, DatabaseIcon, DiscordIcon, HomeIcon, KeyIcon } from '../components/svgs';+import { BookIcon, DiscordIcon, HomeIcon, KeyIcon } from '../components/svgs';export const PRICING_PLAN_REDIRECT = 'https://smythos.com/pricing/';@@ -22,17 +21,9 @@ export const getSidebarMenuItems = (): SidebarMenuItem[] => {}[]).flatMap((item) => item.config);- const devItems =- builderStore.getState().serverStatus?.env == 'DEV' &&- builderStore.getState().serverStatus?.edition == 'enterprise' &&- !window.location.hostname.includes('smythos.com')- ? [{ url: '/data-pool', name: 'Data Pool V2', icon: DatabaseIcon, visible: true, order: 8 }]- : [];-return [{ url: '/agents', name: 'Home', icon: HomeIcon, visible: true, order: 1 },{ url: '/vault', name: 'Vault', icon: KeyIcon, visible: true, order: 5 },- ...devItems,...pluginItems,].sort((a, b) => (a.order || 0) - (b.order || 0));};