Files
picoclaw/pkg/tools
0x5487 19c698356c fix(security): workspace sandbox avoid time-of-check/time-of-use (TOCTOU) races (#464)
* chore: Update default host bindings from 0.0.0.0 to 127.0.0.1 for various services and examples.

* config: Update default host bindings to 0.0.0.0 for improved Docker accessibility and add related documentation.

* refactor: reimplement filesystem tools with `os.OpenRoot` for enhanced security and simplified path validation.

* chore: revert other PR content from this branch

* docs: Update Chinese README.

* docs: Update Chinese README.

* docs: Update Chinese README.

* refactor: Reorder filesystem helper functions, extract directory entry formatting logic, and enhance `WriteFileTool`'s result message.

* feat: Enhance `mkdirAllInRoot` to prevent creating directories over existing files and add tests for directory creation functionality.

* Refactor filesystem tools to use a `fileReadWriter` interface for both host and sandboxed I/O, improving atomic writes and error handling.

* refactor: unify filesystem read/write operations with atomic write guarantees and clearer naming.

* refactor: rename `appendFileWithRW` function to `appendFile`

* refactor: unify filesystem access by introducing a `fileSystem` interface and updating tools to use it directly, removing `os.Root` dependency from `sandboxFs`.

* chore: run make fmt

* fix: `validatePath` now returns an error when the workspace is empty.
2026-02-23 20:09:53 +11:00
..
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-20 22:35:16 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-21 16:20:15 +08:00
2026-02-20 20:03:11 +02:00
2026-02-20 20:03:11 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00