Expand description
Tree-view-domain handlers for CocoonService.
RegisterTreeViewProvider::Fn, GetTreeChildren::Fn, plus private
helpers EnqueueTreeViewEmit (16 ms emit batcher) and ViewIdHandle
(viewId → registration u32).
Modules§
- Enqueue
Tree 🔒View Emit - Coalesce 30+ Mountain → Sky
tree-view/createemits at boot into a single batched payload per 16 ms window. SkyBridge’s listener accepts both single{ viewId, extensionId }and batch{ views: [...] }shapes (mirrors the command-batch pattern fromVine/Server/Notification/RegisterCommand.rs). - GetTree
Children - Round-trip a
getChildrenrequest to the Cocoon-sideTreeDataProviderover Vine. Returns an empty list when no provider is registered or the sidecar call times out (5 s default). - Register
Tree View Provider - Register a Cocoon-contributed tree-view provider in
ApplicationStateand notify Sky via the coalescedEnqueueTreeViewEmitbatcher. - View
IdHandle 🔒 - Hash a
viewIdstring into the sameu32thatRegisterTreeViewProvider::Fnuses as a registration handle. LetsGetTreeChildren::Fnlook up the registered provider without the caller passing the handle through the wire.