← 返回
未分类 中文

Boxed fs

WebAssembly sandboxed file system operations for secure file read/write within explicitly declared directories. Use when needing to read, write, append, copy...
WebAssembly 沙箱文件系统操作,用于在明确声明的目录中进行安全的文件读取、写入、追加、复制等。
guyoung
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 344
下载
💾 0
安装
1
版本
#latest

概述

boxed-fs

WebAssembly sandboxed file system operations. All file operations run inside a WASM sandbox with access control.

Quick Start

// Download wasm first (one-time)
wasm-sandbox-download({
  url: "https://raw.githubusercontent.com/guyoung/wasm-sandbox-openclaw-skills/main/boxed-fs/files/boxed-fs-component.wasm",
  dest: "~/.openclaw/skills/boxed-fs/files/boxed-fs-component.wasm"
})

// List files
wasm-sandbox-run({
  wasmFile: "~/.openclaw/skills/boxed-fs/files/boxed-fs-component.wasm",
  workDir: "~/.openclaw/workspace",
  args: ["list-dir", "--path", "."]
})

// Read file
wasm-sandbox-run({
  wasmFile: "~/.openclaw/skills/boxed-fs/files/boxed-fs-component.wasm",
  workDir: "~/.openclaw/workspace",
  args: ["read-file", "--path", "example.txt"]
})

Supported Operations

  • read-file - Read file contents
  • write-file - Write file contents atomically
  • append-file - Append data to a file
  • open-file - Open a file for reading
  • open-writable-file - Open a file for writing
  • copy-file - Copy a file within root
  • remove-path - Remove a file or directory
  • mkdir-path - Create a directory path
  • list-dir - List files and directories under a path

Trigger When

boxed-fs triggers when the user asks to read, write, append, copy, remove, list, or otherwise manipulate files in a sandboxed environment, or when explicitly requested to use boxed-fs.

boxed-fs 在用户要求在沙箱环境中读取、写入、追加、复制、删除、列出或以其他方式操作文件时触发,或在明确请求使用 boxed-fs 时触发。

Usage Reference

See USAGE.md for detailed command usage and examples.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 10:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

OpenCV

guyoung
使用 OpenCV WebAssembly 实现计算机视觉和图像处理。通过 openclaw-wasm-sandbox 插件加载 opencv-component.wasm 运行,支持图像处理等功能。
★ 0 📥 517

Pandoc Rust

guyoung
强大的文档转换工具,支持Html、Markdown、Docx、PDF、LaTeX格式,实现这些格式间的双向转换。
★ 0 📥 324

Boxed HTTP Server

guyoung
WebAssembly 沙箱静态 HTTP 服务器,支持 HTTP 基本认证和代理。用于启动静态文件服务器、配置 HTTP 认证、设置...
★ 0 📥 419