Liking cljdoc? Tell your friends :D

wagoe.mcp.shell.system-source

SystemSource adapters (BOU-99 / ADR-033). The in-process adapter reflects the project by reading its files and (later) the live Integrant system; the static adapter serves a fixed snapshot for tests. All I/O lives here so the core resource producers stay pure.

SystemSource adapters (BOU-99 / ADR-033). The in-process adapter reflects the
project by reading its files and (later) the live Integrant system; the
static adapter serves a fixed snapshot for tests. All I/O lives here so the
core resource producers stay pure.
raw docstring

build-snapshotclj

(build-snapshot)
(build-snapshot root)

Reflect the project rooted at root (the working directory by default).

Each view is a delay, so reading one resource never pays to build the others. A view that resolves to nil surfaces as :unavailable — and is not advertised at all, see wagoe.mcp.core.resources/available-catalog.

The root is a parameter because relative paths in the JVM resolve against the process working directory, which a test cannot change: reading the project from an explicit root is what makes this reflection testable at all. Live-system views (schema-registry, routes, workflows, libs) are not reflected — see ADR-033.

Reflect the project rooted at `root` (the working directory by default).

Each view is a `delay`, so reading one resource never pays to build the
others. A view that resolves to nil surfaces as :unavailable — and is not
advertised at all, see wagoe.mcp.core.resources/available-catalog.

The root is a parameter because relative paths in the JVM resolve against
the process working directory, which a test cannot change: reading the
project from an explicit root is what makes this reflection testable at all.
Live-system views (schema-registry, routes, workflows, libs) are not
reflected — see ADR-033.
sourceraw docstring

in-process-system-sourceclj

(in-process-system-source)
(in-process-system-source root)

Reflects the project at root, the working directory by default. Re-reads on each call so resources always reflect current state.

Reflects the project at `root`, the working directory by default. Re-reads on
each call so resources always reflect current state.
sourceraw docstring

static-system-sourceclj

(static-system-source snap)

A fixed snapshot, for tests and for serving a precomputed view.

A fixed snapshot, for tests and for serving a precomputed view.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close