mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 00:40:45 +08:00
新增本地 public 工具与适配器
Made-with: Cursor
This commit is contained in:
parent
4d9232f3b3
commit
d8e2f4cacc
11 changed files with 582 additions and 2 deletions
27
docs/LOCAL_PUBLIC_TOOLS.md
Normal file
27
docs/LOCAL_PUBLIC_TOOLS.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Local Public Tools
|
||||
|
||||
This project exposes local atomic capabilities as shared `public` tools for all agents.
|
||||
|
||||
## Included P0 tools
|
||||
|
||||
- `local_run_command`
|
||||
- `local_read_file`
|
||||
- `local_write_file`
|
||||
- `local_edit_file`
|
||||
|
||||
## Loading path
|
||||
|
||||
- Files live under `runtime/tools/public/`.
|
||||
- They are auto-discovered by `runtime/tools/public_registry.py` (`*_tool` factory naming).
|
||||
- Final exposure is controlled in `runtime/tools/catalog.py`.
|
||||
|
||||
## Risk gating
|
||||
|
||||
- `local_read_file` is `risk_level=low` and visible by default.
|
||||
- `local_run_command`, `local_write_file`, `local_edit_file` are `risk_level=high`.
|
||||
- High-risk public tools are hidden unless `AIA_PUBLIC_TOOLS_ALLOW_HIGH=1`.
|
||||
|
||||
## Local backend adapter
|
||||
|
||||
- Adapter path: `runtime/tools/local_sdk/adapter.py`.
|
||||
- Uses a self-implemented local backend (cross-platform) with a stable tool contract.
|
||||
Loading…
Add table
Add a link
Reference in a new issue