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.

sync

ahmedcoder014ac3d4a435da
diff --git a/packages/app/src/backend/services/ModelsPolling.service.ts b/packages/app/src/backend/services/ModelsPolling.service.ts
index 1c9cbf7e..e53ebd96 100644
--- a/packages/app/src/backend/services/ModelsPolling.service.ts
+++ b/packages/app/src/backend/services/ModelsPolling.service.ts
@@ -52,7 +52,7 @@ export class ModelsPollingService {
private async hasModelsChanged() {
try {
const url = `${config.env.API_SERVER}/models`;
- const result = await axios.head(url);
+ const result = await axios.head(url, { headers: { 'x-smyth-debug': true } });
const currentHash = memCache.get(MODELS_HASH_CACHE_KEY);
const newHash = result.headers['x-models-hash'];
diff --git a/packages/app/src/react/features/agent-settings/components/CapabilitiesWidget/triggers/BulkSkillCallForm.tsx b/packages/app/src/react/features/agent-settings/components/CapabilitiesWidget/triggers/BulkSkillCallForm.tsx
index e21ff6af..3f088f1c 100644
--- a/packages/app/src/react/features/agent-settings/components/CapabilitiesWidget/triggers/BulkSkillCallForm.tsx
+++ b/packages/app/src/react/features/agent-settings/components/CapabilitiesWidget/triggers/BulkSkillCallForm.tsx
@@ -13,9 +13,9 @@ import {
import { PlanNames } from '@react/shared/types/subscription';
import { createLocalStorageArrayRetriever } from '@react/shared/utils/utils';
import { useQuery } from '@tanstack/react-query';
-import 'ag-grid-community/styles/ag-grid.css';
-import 'ag-grid-community/styles/ag-theme-quartz.css';
-import { AgGridReact as AgGridReactType } from 'ag-grid-react/dist/types/src/agGridReact';
+// import 'ag-grid-community/styles/ag-grid.css';
+// import 'ag-grid-community/styles/ag-theme-quartz.css';
+import { AgGridReact as AgGridReactType } from 'ag-grid-react';
import classNames from 'classnames';
import { isNil } from 'lodash-es';
import { lazy, Suspense, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/packages/app/src/react/features/agent-settings/components/OverviewWidgetsContainer/index.tsx b/packages/app/src/react/features/agent-settings/components/OverviewWidgetsContainer/index.tsx
index c73b15ae..aa225936 100644
--- a/packages/app/src/react/features/agent-settings/components/OverviewWidgetsContainer/index.tsx
+++ b/packages/app/src/react/features/agent-settings/components/OverviewWidgetsContainer/index.tsx
@@ -15,7 +15,7 @@ import { LLMRegistry } from '@src/shared/services/LLMRegistry.service';
import { llmModelsStore } from '@src/shared/state_stores/llm-models';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import { useFormik } from 'formik';
-import { pick } from 'lodash';
+import { pick } from 'lodash-es';
import {
createContext,
Dispatch,
diff --git a/packages/app/src/react/features/agent-settings/components/WidgetCard.tsx b/packages/app/src/react/features/agent-settings/components/WidgetCard.tsx
index bbb2ad50..1acae148 100644
--- a/packages/app/src/react/features/agent-settings/components/WidgetCard.tsx
+++ b/packages/app/src/react/features/agent-settings/components/WidgetCard.tsx
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import { CustomFlowbiteTheme, Tooltip } from 'flowbite-react';
-import { isNil } from 'lodash';
+import { isNil } from 'lodash-es';
import React from 'react';
type Props = {
diff --git a/packages/app/src/react/index.css b/packages/app/src/react/index.css
index a90f0749..17e29cdf 100644
--- a/packages/app/src/react/index.css
+++ b/packages/app/src/react/index.css
@@ -2,3 +2,5 @@
@tailwind components;
@tailwind utilities;
+@import '~ag-grid-community/dist/styles/ag-grid.css';
+@import '~ag-grid-community/dist/styles/ag-theme-alpine.css';
diff --git a/packages/app/src/react/shared/components/svgs.tsx b/packages/app/src/react/shared/components/svgs.tsx
index b5628c53..f8c39a5e 100644
--- a/packages/app/src/react/shared/components/svgs.tsx
+++ b/packages/app/src/react/shared/components/svgs.tsx
@@ -1485,3 +1485,44 @@ export const ChatIconWithTail = (props?: any) => (
/>
</svg>
);
+
+export const RedoIcon = ({ color = '', ...props }) => (
+ <svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="M13.0361 11.9687C11.8511 13.6862 9.86348 14.8112 7.61337 14.8112C3.98326 14.8112 1.03564 11.8712 1.03564 8.23351C1.03564 4.60337 3.98326 1.65576 7.61337 1.65576C11.1911 1.65576 14.1011 4.50587 14.1986 8.06098"
+ stroke={color || 'currentColor'}
+ strokeWidth="1.235"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ <path
+ d="M15.8929 4.6084L14.3995 8.14026L10.8872 6.65519"
+ stroke={color}
+ strokeWidth="1.235"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+);
+
+export const DeleteIcon = ({ color = '', ...props }) => (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color || 'currentColor'}
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ className="lucide lucide-trash2 h-4 w-4 cursor-pointer"
+ {...props}
+ >
+ <path d="M3 6h18"></path>
+ <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path>
+ <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path>
+ <line x1="10" x2="10" y1="11" y2="17"></line>
+ <line x1="14" x2="14" y1="11" y2="17"></line>
+ </svg>
+);
diff --git a/packages/app/src/react/vite.config.ts b/packages/app/src/react/vite.config.ts
index 645e4b42..28ea15fe 100644
--- a/packages/app/src/react/vite.config.ts
+++ b/packages/app/src/react/vite.config.ts
@@ -58,7 +58,6 @@ export default defineConfig({
alias: {
'@src': path.resolve(__dirname, '../'),
'@react': path.resolve(__dirname, '../react'),
- '@legacy_react': path.resolve(__dirname, '../webapp'),
'@shared': path.resolve(__dirname, '../shared'),
},
},
diff --git a/packages/app/tsconfig.json b/packages/app/tsconfig.json
index 264d4462..77097856 100644
--- a/packages/app/tsconfig.json
+++ b/packages/app/tsconfig.json
@@ -1,25 +1,24 @@
{
- "compilerOptions": {
- "moduleResolution": "node",
- "target": "ES2020",
- "module": "ES2020",
- "esModuleInterop": true,
- "sourceMap": true,
- "outDir": "./static/js",
- "rootDir": "./src",
- "noImplicitAny": false,
- "resolveJsonModule": true,
- "jsx": "react-jsx",
- //"sourceRoot": "./",
+ "compilerOptions": {
+ "moduleResolution": "node",
+ "target": "ES2020",
+ "module": "ES2020",
+ "esModuleInterop": true,
+ "sourceMap": true,
+ "outDir": "./static/js",
+ "rootDir": "./src",
+ "noImplicitAny": false,
+ "resolveJsonModule": true,
+ "jsx": "react-jsx",
+ //"sourceRoot": "./",
- "baseUrl": ".",
- "paths": {
- "@src/*": ["src/*"], // deprecated (Should be removed)
- "@react/*": ["src/react/*"],
- "@legacy_react/*": ["src/webapp/*"],
- "@shared/*": ["src/shared/*"],
- }
+ "baseUrl": ".",
+ "paths": {
+ "@src/*": ["src/*"], // deprecated (Should be removed)
+ "@react/*": ["src/react/*"],
+ "@shared/*": ["src/shared/*"]
+ }
},
"include": ["src/**/*", "node_modules/@types", "eslint.config.js"],
- "exclude": ["node_modules"]
+ "exclude": ["node_modules"]
}