Expand description
fs.* JSON-RPC method handlers — the daemon’s directory inspection surface.
Why: screen 7a’s folder picker needs to browse the local disk, and the UI is
a thin client that never touches the filesystem itself (see the parent
module’s docs for the full rationale, including why no path guard belongs
here). Reaching it over /rpc alongside session.*/task.* — rather than
as a new REST resource — keeps the API exactly what it is today: one
JSON-RPC endpoint, three HTTP routes.
What: register wires fs.list_dir onto a Router. The handler parses
typed params, forwards to super::list_dir, and maps
super::ListDirError onto the vision spec’s §13.2 domain taxonomy via
[to_rpc_error] — reusing the codes already in the table rather than
inventing fs-specific ones.
Test: protocol::tests::*.
Functions§
- register
- Register every
fs.*method ontorouter.