Skip to main content

Module api_browse

Module api_browse 

Source
Expand description

HTTP adapter over zeroclaw_runtime::browse::list_directory.

GET /api/browse?path=<relative-to-shared> returns one level of children. All walking, containment, and sorting lives in the runtime browse module; this is request shape → service call → response shape.

Structs§

BrowsePathBody
BrowseQuery
BrowseResponse
FileReadResponse
MoveBody

Functions§

handle_agent_workspace_delete
DELETE /api/agents/{alias}/workspace/path body { path: "<rel>" }.
handle_agent_workspace_list
GET /api/agents/{alias}/workspace/list?path=<rel> — one level under <install>/agents/{alias}/workspace/<rel>.
handle_agent_workspace_mkdir
POST /api/agents/{alias}/workspace/mkdir body { path: "<rel>" }.
handle_agent_workspace_move
POST /api/agents/{alias}/workspace/move body { from, to }.
handle_agent_workspace_read
GET /api/agents/{alias}/workspace/read?path=<rel> — read a single file. Bounded by AGENT_WORKSPACE_READ_CAP.
handle_browse
GET /api/browse?path=<relative-to-shared>
handle_browse_mkdir
POST /api/browse/mkdir — create a directory under <install>/shared/.
handle_browse_rmdir
DELETE /api/browse/rmdir — recursively remove a directory under <install>/shared/. Refuses protected top-level entries.