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.
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 usesexecFileSync
instead ofexecSync
to make sure that file paths with spaces are handled correctly.