Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.55k stars 226 forks source link

fixes LUNA-218 add path to tauri project metadata #377

Closed ShravanSunder closed 3 months ago

ShravanSunder commented 3 months ago

What was done

This PR adds path to project metadata as optional variable. It only loads path in tauri v4 loader.

Purpose

This will allow us to use the path to automatically output files via the File Node. For example a usecase would be to automatically export datasets into csv files in the same project folder.

Should be a non breaking change to browser loaders and any other project loaders

https://discord.com/channels/1149376303070466110/1149382713904746597/1216788570677837834

ShravanSunder commented 3 months ago

@abrenneke don't merge this, has issues! i lost work! 😢

ShravanSunder commented 3 months ago

@abrenneke Fixed a fatal error.
Added error toast as well when saves don't work to make sure there's no data loss in future