Liking cljdoc? Tell your friends :D

fractal-engine.cliopts

Shared CLI option plumbing: turning --flag value maps into an engine config, resolving the default runs dir, and the always-visible spend line. Used by the agentcli command surface and the codebrain product surface. Deliberately dependency-light (no command/dispatch code, no session/resume/inspect) so it can sit underneath both without a cycle.

Shared CLI option plumbing: turning `--flag value` maps into an engine config,
resolving the default runs dir, and the always-visible spend line. Used by the
`agentcli` command surface and the `codebrain` product surface. Deliberately
dependency-light (no command/dispatch code, no `session`/`resume`/`inspect`) so it
can sit underneath both without a cycle.
raw docstring

cfg-from-optsclj

(cfg-from-opts opts)
source

default-runs-dirclj

(default-runs-dir)

Where runs live when --runs-dir is not given. Mirrors how git and bd find their data dir: if a .fractal/ already exists in the current directory or any ancestor, reuse it; otherwise default to .fractal in the current directory (created on first write). So fractal works wherever you invoke it, and from a subdirectory it still finds the project's runs. Override the store root per-invocation with --runs-dir DIR.

Where runs live when `--runs-dir` is not given. Mirrors how git and `bd` find
their data dir: if a `.fractal/` already exists in the current directory or any
ancestor, reuse it; otherwise default to `.fractal` in the current directory
(created on first write). So `fractal` works wherever you invoke it, and from a
subdirectory it still finds the project's runs. Override the store root
per-invocation with `--runs-dir DIR`.
sourceraw docstring

parse-long-optclj

(parse-long-opt v)
source

session-start-optsclj

(session-start-opts cfg opts)
source

usage-lineclj

(usage-line locator)

A compact, always-visible spend summary read from canonical call facts — the answer to runaway worry is seeing the numbers, not capping them.

A compact, always-visible spend summary read from canonical call facts —
the answer to runaway worry is seeing the numbers, not capping them.
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