Skip to content

Comments

Feature/wasi#12

Merged
Joinhack merged 45 commits intomainfrom
feature/wasi
Jun 9, 2025
Merged

Feature/wasi#12
Joinhack merged 45 commits intomainfrom
feature/wasi

Conversation

@Joinhack
Copy link
Contributor

This MR introduces initial support for WASI-compatible filesystem operations within the javy-bless-plugins. The goal is to enable richer I/O capabilities for plugin developers by exposing a set of common filesystem functions.

✅ Implemented Syscalls and Utilities
The following filesystem operations have been implemented:

open: Opens a file for reading or writing, supporting standard WASI flags and modes. This allows plugins to interact with files on the virtual filesystem.

mkdir: Creates a new directory. Proper error handling is in place to prevent overwriting existing paths.

rmdir: Removes a directory if it is empty. Ensures safety by checking contents before deletion.

unlink: Deletes a file. This helps plugins manage temporary or outdated files effectively.

rename: Allows renaming or moving a file or directory within the virtual filesystem.

stat: Retrieves metadata about a file or directory (e.g., size, timestamps, permissions). This is useful for inspection and conditional logic inside plugin workflows.

fatime (file access time) and fmtime (file modification time): Provides fine-grained file metadata access for audit or caching purposes.

readString: A convenience helper to read a file's contents as a UTF-8 string.

readAll: A lower-level utility to read the entire contents of a file into a buffer, suitable for binary files or streaming scenarios

etc: The framework is designed for extensibility, with future support planned for additional syscalls like write, symlink, chmod

@Joinhack Joinhack requested a review from zees-dev May 28, 2025 09:40
@zees-dev
Copy link
Contributor

Need to add feature to CI release feature list:

Copy link
Contributor

@zees-dev zees-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!
minor changes required

@Joinhack Joinhack requested a review from zees-dev June 6, 2025 09:44
@zees-dev
Copy link
Contributor

zees-dev commented Jun 6, 2025

I think this needs to be addressed before approval: #12 (comment)

@Joinhack
Copy link
Contributor Author

Joinhack commented Jun 6, 2025

I think this needs to be addressed before approval: #12 (comment)

yes thanks

Joinhack and others added 7 commits June 7, 2025 07:21
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
@Joinhack Joinhack merged commit 66219fc into main Jun 9, 2025
1 check passed
@Joinhack Joinhack deleted the feature/wasi branch June 9, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants