Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for mounting files and passing environment variables to Deno runner
This PR introduces several enhancements to the Deno runner in the shinkai-tools-runner library:
Added support for mounting files with read/write and read-only permissions into the Deno execution environment. This allows tools to access specific files during execution.
Implemented passing of environment variables to the Deno runner, including
MOUNT
,ASSETS
, andHOME
. These environment variables provide information about the mounted files and directories to the running tool.Enhanced the Deno permissions system to grant appropriate access to mounted files, assets, and necessary directories for Playwright/Chrome.
Updated the example usage in the README to demonstrate how to set up and call a Shinkai tool from Rust, including passing input data, handling output, and specifying mounted files.
Improved logging and error handling in the DenoExecutionStorage and DenoRunner modules.
Renamed the
assets
field in the ExecutionContext struct toassets_files
for clarity.These changes improve the flexibility and usability of the shinkai-tools-runner library by allowing tools to access specific files and directories during execution. The updated example in the README provides a clear guide on how to leverage these new features when calling Shinkai tools from Rust.