Interactive renderer for Piclaw's /tree command. Requires Piclaw >=2.15.0.
Open Settings → Add-Ons and install session-tree from the catalog, then reload Piclaw.
The add-on registers the session_tree widget kind through globalThis.__piclaw_registerWidgetKind. When /tree runs, Piclaw supplies the renderer with an invocation-scoped flat snapshot in artifact.tree and the current chatJid. The renderer reconstructs the hierarchy locally and returns an ordinary HTML widget artifact.
The widget:
/tree <id> and /tree <id> --summarize commands through window.piclawWidget.submit/tree through the widget bridge to capture a fresh snapshotThe renderer never fetches tree data. If the host does not expose the widget registry, the add-on logs a warning and Piclaw keeps its normal plain-text response.
Piclaw core owns /tree command parsing, snapshot construction, navigation, summarization, and plain-text fallback. It passes { tree, chatJid } through the generic renderer registry and generic HTML artifact path.
This add-on exclusively owns the interactive renderer. It does not depend on a session-tree HTTP endpoint, static core viewer, core frontend component, or session-tree-specific artifact routing.