Repository navigation
0.2.6
-
An architecture SSOT compiled from the code.
jevlint architectureis now a command group,
and with no subcommand it runsreview, whose output does not change until an SSOT exists.
Static analysis collects facts from every file with no network: imports with line numbers,
external packages classified by system, component candidates from directories and import
cohesion, inferred layers, entry points, public interfaces, flows and co-changes. The new verbs
use them. See Architecture-driven development and the
SSOT reference.compileprints a prompt with the facts and a draft that tells a coding agent to write
.jevlint/architecture/, or to update it from what changed sincecompiled_at.--copy
copies it,--agentruns the agent, and--docsadds documents as context.listvalidates the SSOT, exits 2 when it does not load, and warns when it is over the size
budget.showdraws the SSOT, or the draft when there is none, with real dependencies laid over the
declared ones:--view map|layers|flow:<id>|component:<id>,--markdownfor an
ARCHITECTURE.md with Mermaid,--htmlfor one offline page, and--json.checkdecides every structural rule from the AST with a file and line (layers,
depends_on,only,forbid,forbid-call,no-cycles, flows, stale references, unmapped
files), and judges checklist items with the decision model unless--static.--diff <base>
reports only what a change added,--newleaves out whatjevlint baselinerecorded, and
components withstatus: targetare reported as distance from the target.driftreports unmapped code, undocumented dependencies and externals, stale references, and
with a model, stale summaries and documents with--docs.planranks problems by severity, churn and fan-in and computes a move for each, such as the
cheapest edge to cut in a cycle.--prompt,--copyand--agentask an agent forplan.md.reviewadds thecomponentanddesignperspectives when an SSOT exists, from the new
architecture-componentandarchitecture-designpresets, and--copy/--promptgive a
prompt for a prose review.
-
The SSOT is also the architecture document. It can hold curated diagrams in
views/(a system
context, the building blocks, a data model as an ER diagram) and chapters inchapters/with
cited evidence.show --markdownbuilds an ARCHITECTURE.md around the chapters, with diagrams
compiled to Mermaid in GitDiagram's style: subsystems as coloured boxes, shapes by kind, verbs on
the arrows.compilenow asks the agent to write all of it, with rules for drawing from
GitDiagram's generator, a fixed chapter outline and writing rules, and with material for the
reasons: data types, comments in central files and the commits most worth reading. jevlint checks
every solid arrow against the imports and every citation against the files,compile --agent
hands what fails back to the agent,driftreports chapters whose cited files changed, and
reviewadds achapterperspective. -
pr --architectureandcommits --architecturereport the SSOT violations each change
added, with no model, and exit 1 when there are any.--jsonaddsarchitectureto each review. -
jevlint baselinerecords architecture violations when an SSOT exists, for
architecture check --new. -
The architecture review now resolves TypeScript
pathsfrom the roottsconfig.jsonand pnpm,
npm and bun workspace packages, so those links are no longer missing. -
jevlint testfinds fixtures for the questions of the architecture presets without adding them
topresets. -
New setting
architecture.dir, where the SSOT lives. Default.jevlint/architecture. -
The library API exports
checkArchitecture,driftArchitecture,loadArchitecture,
planArchitectureandcollectArchitectureFacts. -
[[quickfix.after]]: run the project's formatters and fixers afterquickfix. Each entry
names a command and optionalfilespatterns. After the agent succeeds,quickfixruns them on
the files it changed, without a shell, and the diff, re-score and commit show the result. A
failing command warns and the run goes on.jevlint.tomlmay set them, so a team can share
them, but jevlint runs a repository's commands only after you approve them, in a prompt or with
the newjevlint trust;--yesnever approves them. The approval covers the list, the
repository's history and the files the commands read, such as a script they name or
package.jsonand the lockfile forpnpm, so agit pullthat changes one asks again. Each
command is stopped after itstimeout, 300 seconds by default.--jsonaddsfixersand
fixerOnlyto each file, and the commit message names the commands that ran and lists the files
only they changed apart from the agent's. -
retry = trueon aquickfix.aftercommand. When the check still fails, the agent gets one
more run with the command's output, fenced as data, to fix only those errors, and then the
commands run again. At most one retry per file.--jsonaddsretried, and the commit message
names the checks that caused the retry and any that still fail. -
fixandquickfixno longer claim the working tree is not clean when git fails. Outside a git
repository, or when git refuses one, as withdetected dubious ownership, the error now gives
git's reason. With uncommitted changes, it names the first few files. Changes outside the project
root, such as in another package of a monorepo, no longer block the run.