API Reference client_utils v#0.6.15
View SourceModules
GenServer that manages a Cloudflare Tunnel process via an Erlang port.
Owner-approved, project-scoped installation credentials. Never exposed to visitors.
A Credo plugin that reports each finding to the CodeMySpec harness that
started the run, as Credo finds it, and a finished event with the totals
(ClientUtils.RunLink).
Serializes Mix.Task.Compiler.Diagnostic structs to JSON-compatible maps.
Which journeys are enforced: those with a line in
.code_my_spec/journeys/ENFORCED, each <slug> <signature>. The CodeMySpec
server signs a journey's line when the journey is handed in. Anyone can read
and check a line here, with no call to the server; only the server holds the
private key, so no commit can make one. A journey not on the list is planned:
its file may sit on main, with no walk, while it is written.
What onboarding a working copy decides, with none of the doing.
The default way onboarding touches a working copy: the real filesystem.
How onboarding reaches a working copy.
Calls an io: adapter — a module, or a module paired with the thing it acts on.
Where this working copy's preview answers, asked of the server that can say.
The case for a journey's walk: one file per journey (@moduletag journey: "<slug>"), one test per stage (@tag stage: "<id>"), in the order of the
journey's .code_my_spec/journeys/<slug>.yml. ClientUtils.Check.JourneyCoverage
holds the file to the YAML.
Runs the journeys, in a real browser, against a deployed app (UAT) instead of the
local test endpoint. just journeys-remote <url> is the way in.
A walk's visits, which wait for the LiveView socket, and its slides: with
CMS_JOURNEY_SLIDES_DIR set, each stage's screenshot and the journey's
slideshow <dir>/<journey>.html (each stage's name above its image, in
stage order). A session that is not a browser takes no screenshot, and with
the variable unset nothing is saved.
Lets the CodeMySpec preview pane embed this application, and nothing else.
A run's link to the CodeMySpec harness that started it.
A run's side of its link to the harness, registered on the run's node.
Holds a project's specs (test/specs/**/*_test.exs) to its story files, from
one test module in the project
Always-on support widget for every visitor, signed in or not — a sticky nested LiveView with two clear intents
ExUnit formatter that
Handles formatting of ExUnit test results into JSON-compatible maps.
Public interface to a user's support WidgetClient. Starts one Slipstream
client per user on demand (under the app's DynamicSupervisor, keyed in the
Registry) and exposes chat send / pagination / feedback / state to
SupportWidgetLive. Shared by applications through client_utils.
Compatibility entry points; shared authorization lives in CodeMySpecClient.
Per-user Slipstream client bridging a logged-in user's support widget to CodeMySpec.
POST /_cms/verify/widget — CodeMySpec asks this app to send a message
through its own widget, so a working install is proven without waiting for
a visitor. Shared through client_utils.
Mix Tasks
The widget now lives in ClientUtils. Install host wiring with mix cms_gen.support_widget.
Generates a deploy-key-authenticated controller that exposes this application's registered users to the CodeMySpec dashboard.
Writes loop.just beside the project's justfile: the recipes the
CodeMySpec loop calls (copy-setup, copy-teardown, run, certify).
Every journey stage passed in the last journeys run.
Runs a command and writes its outcome as a SARIF 2.1.0 file, for a recipe to use when the tool it calls does not write SARIF itself.
Registers after_compiler hooks that write diagnostics to a JSONL file.
Take the working copy this runs in from checkout to ready.