Skip to content
CAI
Software that uses CAICheck a score

invertase/melos

52.3

Adequate · 17 November 2026

18.1k

lines of production code

Dart

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Configurable command settings and lifecycle hooks

Melos now allows you to configure most command-line options directly in your workspace configuration file. You can set defaults for \melos analyze\ (concurrency, fatal warnings/infos, no-pub), \melos exec\ (concurrency, fail-fast, dependency ordering, log grouping, source ignoring), \melos format\ (concurrency, exit-if-changed, output, line-length), \melos list\ (long format, relative paths, output format), \melos run\ (no-select), and \melos test\ (concurrency, no-pub). The \melos bootstrap\ command supports additional \pub get\ arguments, offline mode, lockfile enforcement, and dependency marking. Furthermore, lifecycle hooks (pre/post scripts) are now configurable for \bootstrap\, \clean\, \publish\, and \version\, with \version\ also supporting a \preCommit\ hook. The \melos version\ command also introduces a \fixed\ versioning mode for lockstep releases, a \workspaceTag\ option, and changelog formatting options like grouping by type and including dates.

_packages/melos/lib/src/command\configs · high confidence

Introduce new built-in commands for analyzing, testing, and cherry-picking

Melos now includes built-in commands for \analyze\, \test\, and \cherry-pick\, alongside updates to existing commands. The \analyze\ command runs static analysis with configurable severity levels (e.g., \--fatal-infos\, \--fatal-warnings\) and supports skipping \pub get\ via \--no-pub\. The \test\ command executes tests across packages with concurrency control and a \--no-pub\ flag. The \cherry-pick\ command allows picking commits onto the current branch while excluding release changes, supporting options to record the origin commit (\--record-origin\) and specify a mainline parent for merge commits (\--mainline\). Existing commands like \bootstrap\, \exec\, \format\, \list\, \publish\, \run\, and \version\ have also been updated with new flags such as \--no-pub\, \--group-logs\, \--line-length\, \--mermaid\, \--skip-validation\, \--json\, and \--sign-off\.

_packages/melos/lib/src/command\runner · high confidence

Melos 8.9.0 release with public Dart API

This update publishes Melos version 8.9.0 and introduces a public Dart API via the new \lib/melos.dart\ entry point. Users can now programmatically access core components such as \Melos\, \MelosWorkspace\, \MelosLogger\, and various command configurations (e.g., \BootstrapCommandConfigs\, \VersionCommandConfigs\) and exceptions. The release also includes a generated \version.g.dart\ file to expose the current version string.

packages/melos/lib · high confidence

Melos v6.0.0: New built-in commands and Pub workspaces migration

This release introduces several new built-in commands: \melos analyze\ runs \dart analyze\ or \flutter analyze\ across packages with configurable concurrency and fatal warning/info flags; \melos format\ formats Dart code with options for line length and output mode; \melos cherry-pick\ allows picking commits while excluding release-related changes; and \melos init\ scaffolds a new workspace. The tool has migrated to use the native Pub workspaces feature, meaning \melos.yaml\ is replaced by \pubspec.yaml\ with a \workspace\ field, and bootstrapping now relies on \pubspec\_overrides.yaml\. Additionally, the \melos list\ command no longer accepts the \--all\ flag (private packages are shown by default) and the \--since\ filter has been replaced by \--diff\.

packages/melos/lib/src/commands · high confidence

New changelog generation and dependency tracking infrastructure

This change introduces the core logic for generating and managing changelogs within the Melos workspace. It adds \AggregateChangelog\ to produce a unified workspace-level changelog that categorizes updates into breaking changes, other changes, package graduations, dependency-only bumps, and lockstep versioning. It also adds \Changelog\ and \MelosChangelog\ to handle individual package changelog entries, supporting conventional commit parsing, date inclusion, and grouping by commit type. Additionally, it introduces \EnvironmentVariableKey\ to centralize Melos-specific environment variables, \ExecFingerprints\ to track source changes and skip unchanged packages during execution, and \GitTagPatternDependency\ to support Git dependencies using tag patterns for versioning.

packages/melos/lib/src/common · high confidence

New conventional commit parser with body and breaking change support

The conventional\_commit package now provides a new ConventionalCommit class that parses commit messages according to the Conventional Commits 1.0.0 specification. Users can now access not just the type and description, but also the commit body, breaking change descriptions, footers, and merge commit status. The parser supports scopes with spaces, asterisks, and hyphens, and handles both the '!' suffix and 'BREAKING CHANGE:' footer for breaking changes.

_packages/conventional\commit/lib · high confidence

Behavioural changes

Adopts cli\_launcher for executable bootstrapping

The Melos entry point has been refactored to use the cli\_launcher package, replacing the previous manual argument parsing and command runner initialization. This change standardizes how the CLI is launched, enabling features like local workspace installation resolution and improved handling of execution contexts without requiring a terminal.

packages/melos/bin · high confidence

Automated version generation replaces manual init script

The repository now includes a new \scripts/generate\_version.dart\ utility that automatically reads the Melos package version from \pubspec.yaml\ and writes it to \packages/melos/lib/version.g.dart\, ensuring the internal version constant stays in sync. This change accompanies the removal of the legacy \scripts/init.dart\ script, which previously handled plugin detection and dependency injection for the FlutterFire sidecar setup, streamlining the build process by removing that manual initialization step.

scripts · high confidence

Development wrapper displays local environment warning

A new \bin/melos\_dev.dart\ entry point has been added to support local development workflows. When invoked with the \-h\ or \--help\ flag, this wrapper prints a specific warning message indicating that the user is running a local development version of Melos, before delegating to the main application logic.

bin · high confidence

Melos 8.0: Major configuration and execution overhaul

This release introduces breaking changes to the Melos configuration and execution model. The configuration file has moved from \melos.yaml\ to the root \pubspec.yaml\, and the workspace now relies on the native Pub workspaces feature (\pubspec\_overrides.yaml\) for bootstrapping instead of the previous symlink-based approach. Script definitions have been restructured: the \run\ and \exec\ keys are now mutually exclusive, with \exec\ commands requiring a nested \command\ key, and lifecycle hooks have been moved into specific command sections. Additionally, a new \--quiet\ global flag has been added to suppress informational output, and the \--since\ filter has been replaced by \--diff\ for filtering changed packages.

packages/melos/lib/src · high confidence

Updated IntelliJ project templates for better IDE integration

The IntelliJ project templates have been refactored to provide more granular and accurate module definitions for Flutter and Dart projects. This includes new templates for Android Java modules, pure Dart packages, and workspace roots, ensuring correct SDK and library references. Additionally, run configuration templates now support additional arguments for Flutter runs, shell script execution in the terminal, and specific Dart/Flutter test configurations, improving the developer experience when running and debugging code within IntelliJ.

packages/melos/templates · high confidence

Fixes

Fix dependency serialization to match pubspec.yaml format

The dependency serialization logic in \melos\ has been corrected to properly format Git, Hosted, Path, and SDK dependencies when writing to \pubspec.yaml\. Specifically, simple hosted dependencies (those without a custom URL) are now inlined as a version string rather than a map, and Git dependencies with no \ref\ or \path\ have their URL inlined. This change also renames the internal \toJson\ extension to \toYaml\ to avoid conflicts with \pubspec\_parse\ 1.6.0, ensuring that the generated pubspec files are valid and concise.

packages/melos/lib/src/common/extensions · high confidence

Test coverage

Added comprehensive test suite for Melos core features; Added test coverage for Melos commands; Added test coverage for Melos core utilities; Added tests for conventional commit parsing logic.

Dependencies

Migrate to Dart Pub workspaces and update dependency constraints

The project has migrated from a legacy monorepo structure to using the native Dart Pub workspaces feature. This involves replacing the root \pubspec.yaml\ with a workspace configuration that declares \packages/conventional\_commit\ and \packages/melos\ as workspace members, and removing the legacy \settings.gradle\ file. The \conventional\_commit\ package is now a distinct, standalone package with its own \pubspec.yaml\ (version 0.6.1+1) and a minimum Dart SDK of ^3.9.0. The main \melos\ package has been updated to version 8.9.0, also requiring Dart ^3.9.0, and its dependencies have been refreshed (e.g., \cli\_launcher\ ^0.3.4, \cli\_util\ \>=0.5.0 \<0.7.0, \http\ ^1.5.0). The root workspace configuration now centrally manages dependency versions for bootstrapping, ensuring consistent dependency resolution across the monorepo.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 48.3 → 52.3 (+4.0)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 77.5 → 76.2 (-1.3)
  • Architecture 95.9 → 96.5 (+0.6)
  • Maturity 49.9 → 59.8 (+9.9)
  • Readiness 34.6 → 37.8 (+3.2)
  • Security 73.8 → 73.8 (0.0)
  • Performance 60.0 → 60.0 (0.0)

Resolved (10)

  • Change coupling: exec.dart ↔ utils.dart (packages/melos/lib/src/commands/exec.dart)
  • Duplicated block (16–17 lines × 2) (packages/melos/lib/src/command_configs/publish.dart)
  • Duplicated block (17–20 lines × 4) (packages/melos/lib/src/command_configs/publish.dart)
  • Further sole-owners (lower concentration)
  • Hotspot: packages/melos/lib/src/command_configs/bootstrap.dart (packages/melos/lib/src/command_configs/bootstrap.dart)
  • Hotspot: packages/melos/lib/src/commands/test.dart (packages/melos/lib/src/commands/test.dart)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (packages/melos/lib/src/commands/analyze.dart)
  • No ADRs found
  • Off-boarding risk: anonymized user #1
  • Repeated repair: packages/melos/lib/src/common/environment_variable_key.dart (packages/melos/lib/src/common/environment_variable_key.dart)

New (21)

  • Duplicated block (16–17 lines × 2) (packages/melos/lib/src/command_configs/publish.dart)
  • Duplicated block (17–20 lines × 4) (packages/melos/lib/src/command_configs/publish.dart)
  • Edited copies of one member (3 members, 13+ corresponding lines) (packages/melos/lib/src/common/git_repository.dart)
  • Edited copies of one member (3 members, 32+ corresponding lines) (packages/melos/lib/src/command_configs/analyze.dart)
  • Edited copy of a member (13 corresponding lines) (packages/melos/lib/src/common/aggregate_changelog.dart)
  • Edited copy of a member (17 corresponding lines) (packages/melos/lib/src/command_runner/analyze.dart)
  • Edited copy of a member (17 corresponding lines) (packages/melos/lib/src/logging.dart)
  • Edited copy of a member (18 corresponding lines) (packages/melos/lib/src/package.dart)
  • Edited copy of a member (21 corresponding lines) (packages/melos/lib/src/command_configs/version.dart)
  • Edited copy of a member (22 corresponding lines) (packages/melos/lib/src/commands/analyze.dart)
  • Edited copy of a member (27 corresponding lines) (packages/melos/lib/src/command_runner/analyze.dart)
  • Edited copy of a member (42 corresponding lines) (packages/melos/lib/src/command_runner/list.dart)
  • Edited copy of a member (7 corresponding lines) (packages/melos/lib/src/command_configs/exec.dart)
  • Edited copy of a member (82 corresponding lines) (packages/melos/lib/src/commands/list.dart)
  • Edited copy of a member (9 corresponding lines) (packages/melos/lib/src/command_runner/clean.dart)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (packages/melos/lib/src/commands/analyze.dart)
  • No ADRs found (pubspec.yaml)
  • Off-boarding risk: anonymized user #1
  • Orphaned file (packages/melos/lib/src/commands/format.dart)
  • Orphaned file (packages/melos/lib/src/common/pub_credential.dart)
  • …and 1 more

Changes since last survey

  • 5 commits — 4 feature/other, 1 fixes

By area

  • packages/melos — 3 commits
  • docs/reference — 2 commits

Notable commits

  • fix: fix(exec): set MELOS_PARENT_PACKAGE_* for example packages (#1123)
  • change: chore(release): Publish packages (#1118)
  • change: docs: fix drift found after the docs refresh (#1122)
  • change: docs: point the melos package README at the root contributing guide (#1120)
  • change: docs: refresh Melos docs (#1119)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

invertase/melos was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit d11594c9c6fdf08bc9891abedb12b0453ad35832 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.