picoclaw/pkg/tools
RinZ27 792639d813
Enforce workspace boundaries with configurable restriction option
Implemented a unified path validation helper to ensure filesystem operations stay within the designated workspace. This now supports a 'restrict_to_workspace' option in config.json (enabled by default) to allow flexibility for specific environments while maintaining a secure default posture. I've updated read_file, write_file, list_dir, append_file, edit_file, and exec tools to respect this setting and included tests for both restricted and unrestricted modes.
2026-02-12 12:46:32 +07:00
..
base.go * First commit 2026-02-09 19:20:19 +08:00
edit.go Enforce workspace boundaries with configurable restriction option 2026-02-12 12:46:32 +07:00
filesystem.go Enforce workspace boundaries with configurable restriction option 2026-02-12 12:46:32 +07:00
filesystem_test.go Enforce workspace boundaries with configurable restriction option 2026-02-12 12:46:32 +07:00
message.go * First commit 2026-02-09 19:20:19 +08:00
registry.go Add memory system, dynamic tool loading, and fix logging issues 2026-02-11 00:14:33 +08:00
shell.go Enforce workspace boundaries with configurable restriction option 2026-02-12 12:46:32 +07:00
spawn.go * First commit 2026-02-09 19:20:19 +08:00
subagent.go Add memory system, debug mode, and tools 2026-02-11 00:14:23 +08:00
types.go * First commit 2026-02-09 19:20:19 +08:00
web.go Add memory system, dynamic tool loading, and fix logging issues 2026-02-11 00:14:33 +08:00