Per-turn nREPL resource synchronization for the Clojure pack.
Live state has one model-facing home:
session["resources"]["repls"]["clojure"][dir]. This extension hook
probes owned nREPLs and mirrors them into the generic session registry before
ctx-loop builds that nested resource view. It returns no legacy
session["env"]["languages"] contribution.
OWNERSHIP: we surface ONLY the REPLs THIS session started + owns, PLUS any
external nREPL the user EXPLICITLY attached via connect (both from
repl-manager/session-repls). There is still NO external-port discovery and
no .nrepl-port scanning — attachment is explicit consent, never a scan.
Eval defaults to the workspace-root REPL (else the first) when several exist; the result reports which REPL ran. Each mirror carries liveness status and diagnostics from a per-turn probe.
All best-effort: any failure degrades to an empty contribution and never blocks the render.
Per-turn nREPL resource synchronization for the Clojure pack. Live state has one model-facing home: `session["resources"]["repls"]["clojure"][dir]`. This extension hook probes owned nREPLs and mirrors them into the generic session registry before ctx-loop builds that nested resource view. It returns no legacy `session["env"]["languages"]` contribution. OWNERSHIP: we surface ONLY the REPLs THIS session started + owns, PLUS any external nREPL the user EXPLICITLY attached via `connect` (both from `repl-manager/session-repls`). There is still NO external-port discovery and no `.nrepl-port` scanning — attachment is explicit consent, never a scan. Eval defaults to the workspace-root REPL (else the first) when several exist; the result reports which REPL ran. Each mirror carries liveness status and diagnostics from a per-turn probe. All best-effort: any failure degrades to an empty contribution and never blocks the render.
(contribute env):ext/ctx-fn side-effect hook. Probes this session's owned REPLs and mirrors
each into the resource registry; always returns {} because ctx-loop projects
the registry into session["resources"]. Never throws.
`:ext/ctx-fn` side-effect hook. Probes this session's owned REPLs and mirrors
each into the resource registry; always returns `{}` because ctx-loop projects
the registry into `session["resources"]`. Never throws.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |