Skip to content

v2.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 04:18
· 2 commits to main since this release

ayida v2.2.0

ayida compiles a C4 software architecture from HCL into diagrams, markdown, a site, queries
and an MCP server for assistants. See the changelog.

Coming from loko 1.6? Follow Upgrading to 2.0.

Install

# Homebrew (macOS and Linux)
brew install --cask madstone-tech/tap/ayida

# Go
go install github.com/madstone-tech/ayida/v2@v2.2.0

# Docker
docker run --rm -v "$PWD:/workspace" ghcr.io/madstone-tech/ayida:v2.2.0 build

Or download an archive below and put ayida on your PATH. Verify with ayida --version.

Generated views can run from top to bottom, diagrams render with d2 0.10, and TOON output follows
spec v4.4. Rebuild committed diagrams and sites, and review them: the new layout engines place
some nodes differently. MCP clients and scripts that parse TOON must read spec v4.4.

Added

  • direction on project and deployment sets the direction of generated views.
    direction = "down" on the project lays out the landscape, the system and container views,
    and the deployment views from top to bottom. A deployment block can set its own value, which
    wins for that environment's view. Declared views keep their own direction. Without the
    attribute, the diagrams, pages and export stay the same. In the microservices example,
    "down" changes the landscape from 5,129 × 584 px to 1,585 × 2,314 px. MCP apply_edit,
    schema, ayida diff and the export know the attribute
    (ADR-0026).
  • The wide_view hint stops when the author sets direction on the project, or on the
    deployment block of a deployment view.

Changed

  • Diagrams render with d2 0.10. d2 moved to the module github.com/d2lang/d2, and versions
    after 0.7.2 exist only there. Its elk and dagre engines are now Go code, so builds are much
    faster: on a model of 1,000 elements, a full build takes 2.9 s instead of 63 s with elk, and
    2.8 s instead of 8 s with dagre. SVG files are about 30 % smaller, because d2 embeds its fonts as
    WOFF2. The engines place some nodes differently: in the examples, 8 of 32 diagrams change size,
    by 7 % of their area at most. A committed diagram or site can therefore change after a rebuild.
  • The module requires Go 1.27.4, as d2 0.10 does. go install with an older Go 1.27 still
    works: by default (GOTOOLCHAIN=auto), Go downloads 1.27.4 by itself.
  • The wide_view hint names direction = "down" for a wide landscape or deployment view. It
    no longer suggests a declared view of the same elements, because such a view loses the system
    edges or the deployment structure. The hint for a deployment view now points at its
    deployment block (ADR-0026).
  • TOON output follows spec v4.4 (toon-go 1.0.1,
    #13).
    This changes the default output of the MCP tools, and export, query and diff with
    --format toon. An array length reads [N] instead of [#N]. An array of objects with nested
    objects is now one table. MCP clients and scripts that parse TOON must read spec v4.4. The
    output is the same size or smaller: 5 to 6 % for the larger example exports, and 43 % for MCP
    validate with full ranges. json output does not change.
  • The examples give every element its own prose page. The serverless example now sends each
    order through an SNS topic to one queue for each processor, and its deployment view uses
    direction = "down". It needs ayida 2.2 (ayida_version = "~> 2.2").

Full Changelog: v2.1.1...v2.2.0