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.

updates

Ahmed Essam583a86e01edd
diff --git a/.env.example b/.env.example
index 85674f24..5ddba03c 100644
--- a/.env.example
+++ b/.env.example
@@ -14,8 +14,11 @@ DATABASE_URL="$DATABASE_PROVIDER://$DATABASE_USER:$DATABASE_PASSWORD@$DATABASE_H
APP_URL="http://localhost:5050"
RUNTIME_URL="http://localhost:5053"
-DEFAULT_AGENT_DOMAIN="staging.localagent.ai"
-PROD_AGENT_DOMAIN="live.localagent.ai"
+
+# localagent.stage.smyth.ai is a public domain that loopbacks to localhost.
+# it has wildcard rule to match all subdomains (agentid.localagent.stage.smyth.ai ==> 127.0.0.1)
+DEFAULT_AGENT_DOMAIN="localagent.stage.smyth.ai"
+PROD_AGENT_DOMAIN="localagent.stage.smyth.ai"
AGENT_DOMAIN_PORT="5053" # only set when running the app on a port diff than 80/443
# App local ports to listen on
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index da7cbd0c..d62b0d51 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -68,11 +68,11 @@ SmythOS UI uses [pnpm workspaces](https://pnpm.io/workspaces) to manage the mono
Enable [Node.js corepack](https://nodejs.org/docs/latest-v16.x/api/corepack.html) with `corepack enable`.
-Install the correct pnpm version using `corepack prepare --activate`.
+Install the correct pnpm version using `corepack prepare [email protected] --activate`.
-**IMPORTANT**: If you installed Node.js via homebrew, run `brew install corepack`, as homebrew excludes `npm` and `corepack` from [the `node` formula](https://github.com/Homebrew/homebrew-core/blob/master/Formula/node.rb#L66).
+**macOS (Homebrew):** `brew install corepack` (Node via Homebrew excludes it)
-**IMPORTANT**: On Windows, run `corepack enable` and `corepack prepare --activate` in an administrator terminal.
+**Windows:** Run as admin → `corepack enable && corepack prepare --activate`
### Setting Up SmythOS UI
@@ -152,33 +152,11 @@ To start in production mode:
pnpm start
```
-### Configuring Embodiment Subdomains (Required)
-For embodiment functionality to work properly, you need to configure local subdomains to point to loopback:
+Once the application has started, you can access it at:
-> **⚠️ Critical for Embodiments**: These subdomains are necessary for agent embodiments to function correctly during development.
+[http://localhost:5050](http://localhost:5050)
-**Add to your hosts file:**
-
-**Linux/macOS:**
-```bash
-sudo sh -c 'echo "127.0.0.1 staging.localagent.ai live.localagent.ai" >> /etc/hosts'
-```
-
-**Windows (run as Administrator):**
-```cmd
-echo 127.0.0.1 staging.localagent.ai live.localagent.ai >> C:\Windows\System32\drivers\etc\hosts
-```
-
-**Verify the configuration:**
-```bash
-# Test that the subdomains resolve to localhost
-ping staging.localagent.ai
-ping live.localagent.ai
-# Both should show 127.0.0.1
-```
-
-> 💡 **Note**: Without these subdomain configurations, agent embodiments will not be able to communicate properly with the runtime server during development.
## Development Workflow
diff --git a/packages/app/src/backend/routes/api/page/chat.ts b/packages/app/src/backend/routes/api/page/chat.ts
index 89c4d560..cb32e7e3 100644
--- a/packages/app/src/backend/routes/api/page/chat.ts
+++ b/packages/app/src/backend/routes/api/page/chat.ts
@@ -257,6 +257,7 @@ router.post('/upload', [includeTeamDetails], (req: any, res, next) => {
// Ensure cookies aren’t forwarded
proxyReq.removeHeader('Cookie');
},
+ logLevel: 'silent',
});
return proxyMw(req, res, next);
diff --git a/packages/app/src/backend/routes/api/router.ts b/packages/app/src/backend/routes/api/router.ts
index 3b80be14..2ac31186 100644
--- a/packages/app/src/backend/routes/api/router.ts
+++ b/packages/app/src/backend/routes/api/router.ts
@@ -36,6 +36,7 @@ const componentProxy: any = createProxyMiddleware({
// Remove the Cookie header
proxyReq.removeHeader('Cookie');
},
+ logLevel: 'silent',
});
//this is a code that we'll keep here during the transition from backend components APIs to remote components APIs
router.use('/component/:cptName', (req, res, next) => {
diff --git a/packages/app/src/backend/routes/dbg/router.ts b/packages/app/src/backend/routes/dbg/router.ts
index 55ff29fb..b1b641cd 100644
--- a/packages/app/src/backend/routes/dbg/router.ts
+++ b/packages/app/src/backend/routes/dbg/router.ts
@@ -76,6 +76,7 @@ const createSSEProxyOptions: (targetUrl: string) => Options = (targetUrl: string
const newPath = path.split('/sse')[1];
return newPath;
},
+ logLevel: 'silent',
// Configure proxy headers
onProxyReq: (proxyReq: any, req: any, res: any) => {
@@ -159,7 +160,6 @@ const createSSEProxyOptions: (targetUrl: string) => Options = (targetUrl: string
// Additional options
timeout: 0,
proxyTimeout: 0,
- logLevel: 'debug',
selfHandleResponse: true,
});