sagentic-ai / sagentic-af

😎 Sagentic.ai Agent Framework - Sagentic.ai is a unified platform for building, running and scaling autonomous agents.
https://sagentic.ai
MIT License
66 stars 5 forks source link

Remove platform deploy emulation and small security improvements #6

Closed xiv-bazed-ai closed 9 months ago

xiv-bazed-ai commented 9 months ago

Removed some unused code that aimed to emulate the platform deployment endpoint locally. This was initially used for testing but is now outdated and useless.

The code was exposing an upload endpoint and doing some file manipulation which could become an issue if the local dev server got somehow opened to the internet.

Improved regexp use in OpenAI client and cleaned up tsc invocation in development server - it now uses execFileSync instead of execSync to make sure that file paths with spaces are handled correctly.