@startuml lagrange-projects !include _lagrange.iuml ' Projects window: what each file does, path from a click/URL to a rendered preview. top to bottom direction component "pj / statusline link\n(shell/cowork.zsh, statusline.sh)" as ENTRY component "hammerspoon://cc-projects?path=" as URLEVENT component "projects.lua\n(window, dispatch, pageHtml())" as PROJECTS component "projects_fs.lua\n(denylist, lazy listDir, readChunk)" as FS component "deny-dirs + ~/Downloads\n(hard-denied)" as DENY component "web/projects.js\n(tree, tabs, previews)" as JS component "cchist find\n(⌘⇧F search)" as FIND component "plantuml -tsvg -pipe\n(.puml preview, cached)" as PLANTUML ENTRY --> URLEVENT : open -g / Cmd+click URLEVENT --> PROJECTS : hs.urlevent.bind PROJECTS --> FS : M.open(path), lazy FS --> DENY : checked before listing PROJECTS --> JS : ships tree/tabs shell JS --> PLANTUML : ".puml" preview JS --> FIND : ⌘⇧F full-text JS --> JS : ⌘P file list (client-cached) @enduml