Skip to main content

tom_build_kit 1.42.0 copy "tom_build_kit: ^1.42.0" to clipboard
tom_build_kit: ^1.42.0 copied to clipboard

Build orchestration tool with pipelines that integrates Tom build tools.

1.42.0 #

  • :textresources: an application's text resource files, one per language, assembled from the lib/resources/<package>_<language>.json files of the packages its buildkit.yaml text-resources: section mounts, each under its scope (a package under two scopes twice, a nested scope deeper), with an optional overrides file and an optional Dart source for programs that cannot read a file at start; missing languages are filled from the reference language with a warning; collisions, missing files, overrides for nothing and scopes Tom Core refuses fail with package, scope and entry. --check writes nothing and fails when a committed file differs. :build runs it first in every project with the section.

1.41.0 #

  • :ws-update offers the push options of :ws-push where they apply: --merge-branch on a conflict (your commits pushed to ws-push/<host>/<yymmdd-hhmm>, the branch then put on origin/<branch> with git reset --keep, uncommitted files kept), --push-current off its branch (the branch it is on brought up to its origin and pushed; nothing committed, repos.yaml unchanged), --include-unknown on the warning ws-unknown-seen, now one per clone (the clone merged from its own origin for the run; nothing pushed). A failing push is ws-push-rejected. Nothing else of the run pushes.
  • The local commit count of a :ws-update conflict is counted, no longer the first ten of the log.

1.40.2 #

  • Takes tom_build_base 2.53.0: a standalone nested_tools: entry is wired as its key (d4rtgen: {binary: /opt/x/d4rtgen} is :d4rtgen). The binary fingerprint tests name their fake generator by path.

1.40.1 #

  • Takes tom_build_base 2.52.0: a repos.yaml with keys the reader does not know (a newer format's, or your own) or a newer version: is read instead of refused; wssetup (and buildkit :wssetup) names each in its report as a note line, never a failure.

1.40.0 #

  • Help of the workspace and skill commands: buildkit help ws (the repository set, the three :ws-* commands, synchronizing a quiet workspace machine by machine), buildkit help ws-options (every option that resolves a problem, with the messages and commands that offer it, read off the message definitions), buildkit help skill-json; every message code has its topic. The user guide's sections "Workspace Commands" and "Fleet Skill Commands", the README's command tables.

  • Takes tom_build_base 2.51.0 (lock).

  • The release binaries (what tom_binaries tracks in tom/<platform>/) are declared: compiler: executables: <name>: {release: true} in a project's buildkit.yaml, and a binaries: list in buildkit_master.yaml (any project's executable, bundled applications and libraries, binaries another tool builds, short names, per-platform limits); the set is the sum. New :skill-build-binaries (--list prints the set and where each entry is declared): the generators first, then the projects with release executables, built by a buildkit subprocess into tom_binaries/tom/ (where the shared step records belong); a binary the run wrote there that is no release binary moved to the ignored all/<platform>/; buildkit, findproject and wssetup compiled beside their target and swapped in (the running file renamed aside to .old, deleted by the next run; works on Windows); the short names as symlinks, on Windows as a Git Bash script, a .cmd and a hard link. New :skill-build-all-binaries: the same over every project, every non-release binary left in the ignored all/<platform>/. New :skill-push-binaries: as tom_push_binaries (commit by platform, rebase onto the other platforms, this build wins a path both changed, never forced). --json, -n, --help.

  • New :skill-reconcile-code, :skill-status, :skill-dirty-scan: the per-host work of the fleet skills tom_reconcile_code, tom_fleet_status (its probe) and tom_dirty_work (its scan), under their rules, for the skills to run on each host and read. :skill-reconcile-code: an unknown repository stops the run (skill-unknown, exit 1), unregistered merge drivers too (skill-driver), uncommitted work stops a lone run (skill-decision, exit 3; --dirty=hold holds it), then the code, fork and upstream entries deepest first and the root: cloned when missing, merged and pushed (a rejected push merged and retried once), forks fast-forward only, upstreams at their pin, a repository whose files the merge would overwrite held (skill-held); --own-since <baseline> commits the run's own files. :skill-status prints with --rows exactly what status_probe.sh prints (REPO, RUNBRANCH, OLDTREE, PROBED); :skill-dirty-scan --rows exactly what tom_dirty_work --scan prints, fingerprints included, and --baseline <file> what tom_dirty_work --baseline writes. Every command --json (the run report plus its own section; buildkit help skill-json), -n, --help.

  • New :ws-repo-cleanup: the surplus clones of the tree (on disk under the root, no entry of repos.yaml, not unmanaged, no quest or tool clone, never anything inside _ai). Report only by default: per clone its origin and branch, uncommitted files, commits on no remote branch, branches without an upstream, stashes and what is inside it, with what each option would do. A removable clone (clean, every commit on a remote branch, no stash, nothing inside) is ws-surplus; --apply moves it to <root>/ztmp/<yymmdd>_ws_repo_cleanup/<path> (a free name when taken), --delete (with or without --apply) deletes it. Any other is ws-not-removable (--force-remove: moved with its work, never deleted; or :ws-push --include-unknown <repo> first); one holding an entry or another clone is never moved as a whole. --skip, -n, --json, exit 0/1/2.

  • New :ws-update: brings this machine up to the remotes, nothing pushed. The root first (fetch, merge, repos.yaml read again); missing entries cloned (an upstream at its pin; ws-clone-failed), a changed origin URL re-pointed, a moved entry moved when clean and pushed (ws-move-blocked); then every repository on its branch (ws-off-branch: --to-branch commits, switches and merges the current branch in, --set-branch; ws-detached: --rescue-detached), fetched and merged with origin/<branch>: forks fast-forward only (ws-fork-diverged, --merge-fork), upstreams to their pin (ws-upstream-dirty), tom_binaries with the remote winning. Uncommitted files the merge would overwrite hold the repository (ws-held: --commit-first, --stash-merge, --skip); a conflict is aborted (ws-conflict: --ours, --theirs, --leave-conflict, --skip). Writes the ignore blocks as wssetup does, reports unknown clones (ws-unknown-seen); refuses for ws-driver, ws-in-progress, ws-manifest; -n, --json, exit 0/1/2.

  • :ws-push compares and reports the origin URL as configured, not as an insteadOf rule rewrites it.

  • New :ws-push [-m <message>]: everything this machine has, committed, merged and pushed in every repository of the tree (repos.yaml, _ai included; _ai and the leaves first, the root last; status and fetch eight at a time). Refuses before anything changes for an active Tom AI window (ws-active), a secret or a file over 50 MB that would be committed (ws-secret, ws-large), an unregistered merge driver (ws-driver), a repository mid-merge (ws-in-progress), no or an invalid repos.yaml (ws-manifest). Per repository: a detached HEAD put back on its branch when nothing is lost (ws-detached, --rescue-detached), off its branch ws-off-branch (--push-current, --to-branch, --set-branch), one commit with the run's message, fetch, merge origin/<branch>, push; a conflict is aborted (ws-conflict: --merge-branch, --ours, --theirs, --leave-conflict, --skip), a rejected push merged once more and retried once (ws-push-rejected); never a force push. tom_binaries only with local commits (ws-binaries, --commit-binaries), unknown clones skipped (ws-unknown, --include-unknown), ws-rescue-open, ws-upstream-dirty, ws-fetch-failed. Every message with its options, explanations and the command line to repeat (the run report of tom_build_base), a help topic per code, -n, --json; exit 0 only when nothing is uncommitted and origin/<branch> holds HEAD everywhere. Takes tom_build_base 2.50.0 (the command's help shows the steps and the exit codes).

  • Takes tom_build_base 2.49.0 (run reports and their messages).

  • :gitcommit stages only what you name: --only <paths> stages and commits exactly those paths (untracked ones included, a path of another repository ignored there), --all stages every change first; without either nothing is staged and what is already staged is committed (it ran git add -A whenever there were changes). --push pushes as :gitpush and fails the repository when the push does.

  • New :gitpush (gp): pushes the checked-out branch of each repository to origin, setting its upstream when it has none; never forced; a rejected push is reported, a detached HEAD is not pushed.

  • :gitstatus reports each repository against origin/<expected branch> (the entry's branch from repos.yaml, a quest clone's from _ai/quests.yaml, else the branch checked out): ahead, behind, changes, a detached HEAD, off its branch, and the upstreams of the set with their pin (off its pin). Findings are messages with a help topic each (git-detached, git-off-branch, git-off-pin, git-no-remote-branch). --json: one document (the run report and repositories). It walks the repositories itself, so -w covers the nested workspaces in one run; eight repositories are fetched at a time.

  • Takes tom_build_base 2.48.0: git mode runs on the combined repository set of repos.yaml (the root, the code, fork, ai and binaries entries and the quest clones; upstreams, unmanaged and tool-owned clones skipped; build skip markers no longer hide a repository; -w runs each repository once), and project mode skips every kind: upstream path.

  • wssetup reads repos.yaml with tom_build_base's reader (ReposManifest, findReposRoot, reposHostId), its own copy removed; --manifest reaches it also where the parser takes it as the git traversal option (BK-WSS-11).

1.39.1 #

Fixed — :versioner on Windows with Flutter's dart.bat #

  • dart --version (the Dart SDK version the versioner stamps and the fingerprints hold) and the versioner's dart format now run in a shell on Windows. The dart Flutter puts on the PATH there is flutter\bin\dart.bat, which a compiled buildkit.exe could not start without one, so every :versioner failed with "cannot read the Dart SDK version" and the build cache keys read dart ?.

1.39.0 #

Added — skipping what another host built (fingerprint records in the binaries layer) #

  • In a workspace whose buildkit_master.yaml names the binaries layer (required-environment: binaryPath: $TOM_BINARY_PATH), every step's recorded state is also written to $TOM_BINARY_PATH/.buildkit/steps/ (:versioner, the generators: the same for every platform) or $TOM_BINARY_PATH/<platform>/.buildkit/steps/ (:compiler), one <project>.json each, which tom_push_binaries commits with the binaries. Another host or clone that pulled the code and the binaries skips a step whose inputs are the same (up to date (fingerprint)): a second build_binaries over unchanged code compiles nothing, runs no generator and writes no new build number. The project's own .dart_tool/buildkit/steps.json stays the fast path. Without TOM_BINARY_PATH, and for a project under .dart_tool or ztmp, only steps.json is used.
  • The generators buildkit runs as nested tools (:d4rtgen, :reflectiongenerator, :reflector) are incremental steps: a project with the generator's section (for :reflectiongenerator also a build.yaml) whose inputs did not change is skipped without starting the generator. The generator's --version is part of its configuration. Takes tom_build_base 2.47.0 (ToolRunner(wiredExecutorWrapper:)).
  • :versioner and the generators are recorded once more with the project as the run leaves it: a generator that rewrites files after :versioner no longer makes the next run stamp a new build number.

Changed #

  • :compiler's fingerprint no longer holds TOM_BINARY_PATH (a host's path); its binaries are kept relative to it instead, so a record names them where the binaries are on the host that reads it.

1.38.0 #

Fixed — -w runs the sub-workspaces with this buildkit; owned clones are left out #

  • Takes tom_build_base 2.46.0: buildkit -w (and a delegated pipeline) starts each sub-workspace's run with the running buildkit itself, not buildkit looked up on the PATH: called by its full path with none on the PATH it no longer fails (could not start buildkit), and every sub-workspace runs the same version.
  • A folder holding tom_skip.yaml is left out even when it holds a buildkit_master.yaml: the build tools' workspace clone (tom_test_support 0.8.2 writes the file into it) is no longer walked by -w.

1.37.0 #

Changed — the guidelines folder is _agent_guidelines #

  • :doccheck's guidelines-index reads the package's _agent_guidelines/, else the old _copilot_guidelines/ (guidelinesFolderOf()); the gap names the folder found (_agent_guidelines/ has no index.md).
  • Doc comments name the guideline files under _agent_guidelines/.

1.36.0 #

Fixed — -w reaches the sub-workspaces with a direct command #

  • Takes tom_build_base 2.45.0: buildkit -w :pubget (and every other direct command) runs in each sub-workspace below the scan root (a folder with its own buildkit_master.yaml) after the current workspace, with the same arguments; buildkit -w -l :pubget lists their projects too. Before, -w only affected pipelines.
  • The -w help text and the guide's Sub-Workspace Handling section say so; the guide's example no longer passes -R, which keeps the sub-workspaces out.

1.35.0 #

Added — C built by Ceedling #

  • Takes tom_build_base 2.44.0: a Ceedling project.yml beside C sources makes a C project.
  • :build runs ceedling release when the project.yml configures a :release_build: (else nothing), :test ceedling test:all, :clean ceedling clobber.

1.34.0 #

Added — C and C++ built with Meson or Bazel #

  • Takes tom_build_base 2.43.0: a meson.build that declares the project or a Bazel workspace file beside C / C++ sources makes a C / C++ project.
  • :build, :test and :clean for them: Meson meson setup --reconfigure build && meson compile -C build, meson test -C build, delete build/; Bazel bazel build //..., bazel test //..., bazel clean.

1.33.0 #

Added — Scala projects #

On tom_build_base 2.42.0 (ScalaFolder): :build, :test and :clean of a Scala project run sbt -batch compile / test / clean. :bumpversion bumps build.sbt's version :=, and :projects lists Scala projects.

1.32.0 #

Added — wssetup, and buildkit :wssetup #

A standalone tool on tom_build_base that sets up the directory tree after a checkout from the root's repos.yaml: at the root every repository of the tree, in a workspace folder (or --folder) the ones below it. It clones only what is missing (on the entry's branch, an upstream at its pin, for this host or with --only), compares what is there (origin, branch, pin) without changing it, and writes each parent's generated ignore block as tom_repos --apply does (--check reports it; -n lists the plan). It needs no .tom, no _ai, no extension configuration and no build environment; the AI state and the links stay the fleet skill's. Before the cutover (root .gitmodules) submodule entries are left to git and no block is written. buildkit :wssetup runs the same with the same options; buildkit's traversal never reads repos.yaml (BK-WSS-1..10). Compiled with buildkit and findproject.

1.31.0 #

Changed — git mode on tom_build_base 2.41.0 #

  • Git mode (-i / -o) skips what project mode skips: ztmp, _ai and the other always-skipped folders, folders with tom_skip.yaml / buildkit_skip.yaml and nested workspaces; --no-skip lists the marked ones. A :gitcommit -i no longer commits in scratch copies under ztmp/ or in the _ai mount.
  • --modules / --skip-modules select repositories by whole path segments or by repository ID (the folder holding its tom_repository.yaml), so independent clones are selected like submodule checkouts; tom_basics no longer selects tom_basics_console.
  • Repositories at the same depth run in path order.

Fixed #

  • :status -i / -o were refused ("This command does not support git traversal"): the command now declares git traversal and reports every repository git mode walks, with its skips; --no-skip lists the marked ones (BK-STAT-1).

1.32.0 #

Fixed — :compiler from the workspace root with -p #

A project selected with -p from the workspace root has a relative path. :compiler changes into the project before compiling, and the build cache's input hash (1.30.0) resolved that relative path against the project itself: git ls-files started in a folder that is not there, and every compile failed with ProcessException: No such file or directory (13 projects in a buildkit :compiler over the tree on mbp). The compiler works with the absolute project path (BK-CACHE-7).

1.30.12 #

Fixed — :projects lists without the build environment #

Since tom_build_base 2.39.0 the required-environment check runs before every command, and it refused :projects in the VS Code extension, which runs it from a process without TOM_BINARY_PATH or dart on its PATH (the extension fell back to its JavaScript port). :projects declares needsEnvironment: false (tom_build_base 2.39.3), so a listing is never stopped by a missing build tool (BK-PRJ-6).

1.30.11 #

Fixed — :pubget and a git dependency on a moving branch #

A library's pubspec.lock is not tracked, so pub get keeps a git dependency at the commit the host resolved first; when the branch has moved on and another dependency needs the new commit's dependencies, pub get fails on version solving (seen on legiondary01 with app_webwork's appflowy_editor fork). :pubget / :pubgetall now retry once with pub upgrade <the lock's git packages> and say so. A tracked (application) lock is not upgraded.

1.30.10 #

Changed — on tom_build_base 2.39.1 #

  • required-environment: of buildkit_master.yaml is checked before every command: an error stops the run and says how to fix it (the setup instructions and buildkit setup); buildkit doctor reports warnings too.
  • A project's recursive: false keeps buildkit's walks out of its subfolders.
  • :define / :macro keep buildkit_master.yaml's comments.

Fixed — where pipelines live #

The help footer said pipelines may be in a project's buildkit.yaml under buildkit.pipelines; they are read from buildkit_master.yaml's top-level pipelines: only. The user guide's "Configuration Hierarchy" says the same.

1.30.9 #

Changed — :apireference takes each module's guide from the index #

A module's guide is the file the index's Quick Navigation links beside the module's summary (the guideline's "Module Guide" column), else, as before, doc/<module>.md or doc/<module>/<module>.md. A guide the index links that is not there is a missing input. Packages whose guides are named otherwise (doc/aws_secrets.md for the module aws) now get them into Part III.

1.30.8 #

Fixed — a binary's record names its project by its workspace path #

<binary>.buildkit.json named the project by the run's context name, which is . for the project a run starts in. It now holds the project's path from the workspace root (e.g. tom_ai/devops/tom_test_kit).

1.30.7 #

Added — :compiler records the binaries it writes #

:compiler reads the outputs of its dart compile ... -o <path> commands and writes a record beside each binary outside the project, <binary>.buildkit.json (format buildkit-output: project, buildkit version, the step's fingerprint, time, size, sha256), and keeps the outputs with the step's entry in .dart_tool/buildkit/steps.json. A project whose inputs did not change is compiled again when one of its binaries is missing, has no record, is recorded by another build, or was replaced after its record was written. Before, a deleted or overwritten binary left the project 'up to date' until --force.

1.30.6 #

Fixed — :versioner no longer stamps an empty Dart SDK version #

Without a readable dart --version (no dart on PATH, e.g. a host reached over SSH), :versioner wrote dartSdkVersion = '' and reported "version file generated"; the merge driver then carried that file across the fleet. The run now fails for that project, naming dart --version and PATH, and writes nothing; an existing version file stays as it was.

1.30.5 #

Fixed — buildkit help <command> for a wired nested command #

On tom_build_base 2.38.1: buildkit help <nested command> prints the help of a wired nested command, taken from its nested tool, instead of Unknown help topic.

1.30.4 #

Fixed — buildkit help <command> prints the command's help #

On tom_build_base 2.38.0: buildkit help <command> (also help :<command>, an alias or an unambiguous prefix) prints the same help as buildkit :<command> --help instead of Unknown help topic.

1.30.3 #

Changed — no escape codes in piped output #

On tom_build_base 2.37.0: buildkit and findproject style their output only on a terminal. Piped or redirected output, and any output under NO_COLOR, is plain text with the markdown markers removed (buildkit --help | cat -v shows no escape code); FORCE_COLOR=1 styles a pipe.

1.30.2 #

Changed — a one-value option given twice is refused #

On tom_build_base 2.36.0: buildkit -s a -s b (and any other option that takes one value, given twice) stops with an error naming the option and both values, instead of keeping the last value without a word. Several scan roots are written once, comma-separated: buildkit -s a,b.

1.30.1 #

Fixed — navigation: exclude on Windows #

On tom_build_base 2.35.2: buildkit on Windows walked the projects buildkit_master.yaml excludes (43 in the workspace, the forks under xternal/ among them), because the path filters compared Windows paths with / patterns. The Windows dry run of :versioner now walks the same 180 projects as macOS.

1.30.0 #

Added — the build cache of :compiler #

:compiler keeps each binary it compiles in ~/.tom/cache/buildkit/ (TOM_BUILDKIT_CACHE_DIR), keyed by the project's inputs (files, lock, path dependencies), the Dart SDK version, the target platform and the compile commands without their output paths, and copies it from there instead of compiling when the same compile comes again. Only pipelines of dart compile ... -o and mkdir commands are cached. The entries used longest ago are evicted past 2048 MB (TOM_BUILDKIT_CACHE_MAX_MB); --no-cache compiles and stores nothing. BK-CACHE-1..6.

1.29.0 #

Added — skipping a project whose inputs did not change #

:compiler, :versioner and :runner (--command=build) skip a project whose inputs are unchanged since the step last succeeded there, and report it as up to date. The inputs: the project's files as git lists them (tracked and untracked, not ignored), pubspec.lock and pubspec_overrides.yaml, the files of its path dependencies, the step's options, buildkit_master.yaml, the buildkit and Dart SDK versions (:compiler also its platform and TOM_BINARY_PATH). The hash taken after the last successful run is kept per step in <project>/.dart_tool/buildkit/steps.json; a failed run removes it. --force runs every project anyway. Every other command runs as before. BK-INC-1..8.

Changed #

  • :versioner no longer writes a new build number when its project did not change; VER_BLD01 now forces its second run.
  • The Dart SDK version is read by one helper for :versioner and the incremental steps.

1.28.0 #

Changed — :pubget and :pubupdate run their projects at once #

On tom_build_base 2.34.2: :pubget, :pubgetall, :pubupdate and :pubupdateall are parallel commands; up to --jobs projects run at once (default the CPU count, at most 8; --jobs 1 one after another), each project's pub output printed in one piece when it is done (no longer streamed). Measured on the workspace (180 projects, mbp): :pubgetall 1m 44s -> 23 s. BK-PUBJ-1, BK-PUBJ-2.

Added — the time per step in the run summary #

Every run's summary has a Timing section (tom_build_base 2.33.0): per command the projects, their time and the slowest; the total. Pipelines print each step's time (a multi-line stdin command by its first line; no timing on a dry run, tom_build_base 2.34.2).

Changed — :versioner reads dart --version once per run #

The Dart SDK version written into each version.versioner.dart is read once per run instead of once per project.

1.27.0 #

Added — :bumpversion --changelog drafts the CHANGELOG entry #

With --changelog, each bumped project gets a draft ## <new version> section at the top of its CHANGELOG.md (created when missing): the subjects of the commits that touched the project folder since its version last changed (the newest commit whose version file states another version than its parent's, or adds it), newest first, without merges, plus a line when the folder has uncommitted changes; a comment names where it was drawn from. A section of the new version that exists is kept and nothing is added. --dry-run prints the draft. BK-CLOG-1..6; user guide, bumpversion.

1.26.0 #

Added — :docsite, the API docs of the selected packages in one site #

buildkit -s tom_ai/basics :apidoc :docsite copies each selected package's dartdoc output (build/api_doc, --api-doc) into one gitignored folder (build/doc_site under the workspace root, --output), renders its README beside it, and writes an index page: every package with API docs, sorted, with version and description from its pubspec and links to its API docs and README; packages without API docs are named below. Built once the traversal is over (tom_build_base's afterTraversal), replacing the folder whole. Served locally (dart pub global run dhttpd --path build/doc_site). New dependency: markdown (README rendering). BK-DOCSITE-1..5; user guide, Docsite Command.

Changed — the output-folder rule names its base #

refuseGeneratedOutput says "inside the workspace root" for a folder relative to it (:docsite), "inside the package" for the others.

1.25.0 #

Added — :doccheck, the documents each package lacks #

buildkit -s tom_ai/basics :doccheck reports per package what the workspace guidelines ask for and is missing: README.md, its attribution blockquote, its required sections (default Features, Installation, Quick start, Documentation — the ones component_module_readme_example.md and documentation_guidelines.md share), CHANGELOG.md, an example, user docs in doc/, and an index in a _agent_guidelines/ folder. --strict exits 1 on a gap. The checks and sections come from doccheck: in buildkit_master.yaml; a package opts out in its buildkit.yaml, always with a reason (skip:, exclude: {check: reason}, its own readme-sections:); an opt-out without a reason or with an unknown check is a configuration error. BK-DOCCHK-1..8; user guide, Doccheck Command.

1.24.1 #

Fixed — a hung md2pdf no longer stops :apireference for good #

tom_md2pdf can hang on a document it cannot lay out (tom_core_kernel's logging and reflection summaries). :apireference stops md2pdf after --timeout seconds (default 600) and fails the package with a message; the other packages go on. BK-APIREF-9.

1.24.0 #

Added — :apireference, a package's combined API reference PDF #

buildkit -p <package> :apireference collects the package's summary index, module summaries (alphabetically) and module guides (doc/<module>.md or doc/<module>/<module>.md), assembles them in the order api_reference_creation.md gives — Part I index, Part II module references, Part III guides, headings nested, link columns removed, links as text — and renders the PDF with tom_md2pdf (md2pdf from the binaries layer, or --md2pdf), both into the gitignored build/api_reference/; never doc/. Missing inputs (no index, no module summary, a summary the index links to) are named and fail the package; modules without a guide are listed; a package without doc/api/ is NOT DOCUMENTED and skipped. BK-APIREF-1..8; user guide, Apireference Command.

Changed — one rule for generated output folders #

:apidoc and :apireference share refuseGeneratedOutput (inside the package, never in doc/) and the note when git would track the output.

1.23.0 #

Added — :apisummary, where an API summary is out of date #

buildkit -p <package> :apisummary reads the package's public API with the analyzer's parser (what the lib/*.dart entry points export, show / hide applied, top-level constants included — tom_build_base 2.32.0) and compares it with its hand-authored doc/api/api_summary_*.md in both directions: public API no summary names (a member is looked for in its type's section, a supertype's, or the extended type's), and names a summary presents as API — a ### Name heading, a member-table cell, a Type.member code span — that the package no longer declares. It writes nothing. --strict exits 1 on a finding; a package without a summary is NOT MEASURED and skipped. BK-APISUM-1..8; user guide, Apisummary Command; api_summary_creation.md.

Changed — :apidoc writes into build/api_doc #

The default output is now build/api_doc, the workspace's place for generated API reference (_bin/check_doc_runner_output.py), instead of build/api.

Changed — the exported-symbol listing is shared #

exportedSymbolsOf / exportedTopLevelOf (lib/src/unreferenced) list a package's public API for both the unreferenced-export audit and :apisummary; the audit's findings are unchanged.

1.22.0 #

Added — :apidoc, dartdoc API documentation per package #

buildkit -s tom_ai/basics :apidoc runs dart doc in every Dart package of the traversal and writes into build/api (--output <dir>, relative to the package; never inside doc/, which holds hand-authored documents only). Per package it prints dartdoc's warning and error lines and one result line: libraries, warnings (unresolved doc references counted apart), and how many public elements of index.json have no doc comment. A non-zero exit, dartdoc errors or no public library fail the package; an unresolved package (.dart_tool/package_config.json missing) is refused before dartdoc runs; a package without a lib/ library is skipped. Usable as a pipeline step (buildkit :apidoc). BK-APIDOC-1..9; user guide, Apidoc Command.

Fixed — the user guide's pipeline examples #

The examples wrote pipeline steps as bare command names (- versioner) and a dcli step, which the pipeline loader refuses; they now read buildkit :versioner and shell dcli ..., and the text names the step kinds.

1.21.0 #

Fixed — --list runs nothing (tom_build_base 2.29.0) #

buildkit --list :pubgetall ran pub get in every project. On tom_build_base 2.29.0, --list runs nothing: alone it lists the commands and pipelines, with a command the projects it would run on, with a pipeline its steps. The nine executors that already had a read-only list mode keep it and declare it (handlesListMode): versioner, compiler, cleanup, runner, dependencies, unreferenced, bumpversion, bumppubspec and the build / test / clean actions; every other command is named per project and not run. The --list help text and the user guide say so.

1.20.0 #

Changed — -X- is refused (tom_build_base 2.28.0) #

The user guide described -X- (-s-, -v-, -n-) as taking an option away from one command of a multi-command run. That never existed: the commands of a run share one traversal, and buildkit :versioner -s- read -s- as --scan -. On tom_build_base 2.28.0, -X- and --name- are refused with an error before anything runs. The guide's "Options in Multi-Command Runs" section says what holds: the options of a run apply to all of its commands, wherever they stand, also after a pipeline name. BKT_OPT01 tests the refusal; BKT_DRY01 (an option after a pipeline name, bug #15) runs again instead of being skipped.

1.19.0 #

Added — :projects: the projects buildkit works on #

  • buildkit :projects lists every project a project command would visit (the same traversal, buildkit_master.yaml navigation defaults, -p, -r, --exclude-projects, --group) with id, name, path and natures; --json prints one JSON document (formatVersion 1) for callers outside Dart. The VS Code extension lists projects with it instead of the retired generated workspace manifest (tom_build_base ^2.27.0, listProjectsFor). --all lists every project of the tree, past the navigation: excludes. Alias proj. BK-PRJ-1..5.
  • The primary nature of :build / :test / :clean is tom_build_base's primaryProjectNature (the same order as before).

1.18.0 #

Changed — dcli is tom_dcli #

tom_dcli ^10.4.7+tom.1 in place of dcli: the Tom Framework's fork of dcli 10.4.7, which reads INI files with its own IniConfig instead of the LGPL-3.0 ini package that the buildkit binary compiled in.

1.17.0 #

Changed — the build number lives in version.versioner.dart #

  • :versioner reads the build number from the project's existing versioner file and writes it plus one (1 when there is none). It no longer reads or writes tom_build_state.json, which is retired. A versioner file without a buildNumber is an error that names the file. VBN-1..5.
  • :bumpversion no longer resets the build number: it only grows, so the fleet's merge driver can tell the newer build by it alone.

1.16.0 #

Added — :build, :test, :clean for every SOM runtime language #

  • New commands run one step in every selected project with its language's own tool, by its nature (tom_build_base ^2.26.1): Dart / Flutter, TypeScript, JavaScript, Python, Java (Maven, Gradle), Go, Rust, C / C++ (make, CMake). A build: / test: / clean: entry in the project's buildkit.yaml replaces the default (a command, a list, or false); --list / --dry-run show the command. Proven on the 18 SOM runtime packages (build, test, clean all green). BK-ACT-1..7.
  • :bumpversion bumps the version file of every language project (package.json, pyproject.toml, Cargo.toml, pom.xml besides pubspec.yaml); Go and C / C++ have none and are skipped.
  • :clean is no longer an alias of :cleanup (which keeps cl).

1.15.1 #

Changed — the project identity comes from buildkit.yaml #

buildkit takes tom_build_base ^2.25.0. --project <id or name> and findproject match the project_id and name at the top of the project's buildkit.yaml (the resolver read a project-id key no file used); tom_project.yaml is not read any more. BK-RES-1..4.

1.15.0 #

Added — --group #

buildkit takes tom_build_base ^2.24.0: --group <name> selects the projects of a group, where every git repository and every buildkit_group.yaml directory is a group (user guide, "Group Selection"). The hand-kept group lists of tom_workspace.yaml are not read.

1.14.1 #

Changed — the workspace root is the nearest buildkit_master.yaml #

buildkit takes tom_build_base ^2.23.0, where buildkit_master.yaml is the one workspace marker (tom.code-workspace no longer counts). Each lookup (pubgetall, the compiler's placeholders, project search, runner, versioner) uses findWorkspaceRootOrNull and falls back to its start directory outside a workspace, as before. The build_project fixture's tool finds the workspace the same way.

1.14.0 #

Added — :boundaries, the context-boundary check #

Runs tom_build_base's checkContextBoundaries (2.21.0) over the traversal: the bounded contexts of a package, read from the boundaries: section of its buildkit.yaml, against its imports and exports. A violation or a rotted rule fails the project (exit 1) and names file, line and imported library; a package without the section is NOT MEASURED, which fails when the package was asked for by name or the command runs inside it, and is skipped by name in a wider traversal. --json prints one report per project per line, written past the console-markdown layer so the JSON stays intact; --tests adds test/. Documented in doc/buildkit_user_guide.md; tests BK-BND-1..6. tom_build_base: ^2.21.0.

1.13.4 #

Changed — :compiler names every listed target it does not build #

A compile section's targets: lists what it may build; a plain run builds the current platform only (each platform is built on its own host), and --all-platforms / --targets build more. The listed targets a run did not build used to vanish from the trace, so targets: [darwin-arm64, linux-x64, linux-arm64, linux-armhf] looked like a fan-out that never happened. With -v each is now named with the reason (Not building linux-x64: current platform only; --all-platforms or --targets builds it). A selected target the host cannot build (dart compile exe cross-compiles to Linux only, so Windows or macOS from another platform) is skipped by name, verbose or not, instead of running a compile that fails. CompilerExecutor.planTargets, PlatformUtils.canBuildOn; tests CMP_PLAN01..07.

1.13.3 #

Fixed — :buildsorter --include-dev was ignored #

tom_build_base 2.19.0 added --include-dev as a traversal option, which took the flag before :buildsorter's own option of the same name could, so :buildsorter --include-dev sorted without dev dependencies. The command now reads the traversal setting (--exclude-dev still wins) and no longer defines its own option. Tests BK-SORT-1/2. tom_build_base: ^2.19.1.

1.13.2 #

Changed — build order without dev dependencies (tom_build_base 2.19.0) #

tom_build_base: ^2.19.0. buildkit's build order ignores dev_dependencies by default (--include-dev opts in), so the two dev-only cycles in the workspace (tom_reflection / tom_reflection_generator, tom_ast_generator / tom_d4rt_exec) no longer make every run fall back to scan order. A remaining cycle is reported with its members and edges only.

1.13.1 #

Changed — dcli ^10.4.7 #

dcli: ^10.4.7 (from ^10.0.0), the version this package is tested on. 1.13.0 had to admit 10.0.0 because tom_d4rt_dcli pinned pubspec_manager ^3.2.1, which only dcli 10.0.0 accepts; tom_d4rt_dcli 1.14.0 and tom_dcli_exec 1.15.0 are on dcli ^10.4.7 / pubspec_manager ^4.1.0, so a package taking both now resolves dcli 10.4.7.

Tests run on the workspace clone #

The integration suites run on the machine's workspace clone (tom_test_support 0.6.0 TomWorkspaceClone, a full clone with every submodule beside the workspace) instead of a skeleton copy of descriptor files. The clone is created on first use, brought to the live repositories' commits before a run and reset after it. Test-only: the library is unchanged by it. See _agent_guidelines/testing.md.

1.13.0 #

Changed — dcli ^10 #

dcli: ^10.0.0 (from ^8.4.2). Every tom_d4rt_dcli from 1.5.0 on is on dcli ^10, so a package taking both (tom_build_cli, the tom binary) did not resolve against any earlier tom_build_kit. The floor is 10.0.0 because tom_d4rt_dcli still pins pubspec_manager ^3.2.1, which only dcli 10.0.0 accepts; on its own tom_build_kit resolves the current 10.4.x. Tested on both.

Changed — --project ids come from project_id only #

Requires tom_build_base 2.18.0. A bare --project name matches a project's folder, its tom_project.yaml project_id, or its name; the short-id fallback is gone, as in tom_build_base 2.18.0.

An absolute --project path in a workspace reached through a link (on macOS everything under /var is /private/var) was rejected as outside the workspace, and then selected no project (tom_build_base 2.17.1 / 2.17.2).

Tests run in a scratch copy of the workspace #

The integration suites no longer touch the live workspace: each test file works in its own copy (test/helpers/scratch_workspace.dart), so they run while other sessions edit the tree. See _agent_guidelines/testing.md.

1.12.0 #

Added — :unreferenced, the unreferenced-export audit #

Every public symbol a set of packages exports from lib/ that no other lib/ or bin/ file names, configured by the unreferenced: section of a project's buildkit.yaml (root, package prefix, exclusions, consumer repositories, and an allowlist whose every entry carries a reason). A @visibleForTesting seam passes while a test names it; a stale allowlist entry, a malformed section or an audit that checked nothing fails the project. The engine is also a library, package:tom_build_kit/unreferenced_exports.dart. It came from Webwork's tool/unreferenced_exports.dart, whose allowlist is now its configuration. Requires tom_build_base 2.17.0 (the seam engine's declaration scanner) and adds analyzer.

1.11.0 #

Fixed — :versioner reports what it did, not what it intended #

The installed buildkit binary printed

Version file generated: tom_d4rt_generator v1.37.0 build 20
Status: SUCCESS

over a version.versioner.dart that still read 0.0.1-STALE. It advanced tom_build_state.json and wrote nothing else. The consequence is worse than a stale tool: version_stamp_test.dart fails with the remedy "run buildkit -v -p . :versioner", pointing the reader at the command that silently does nothing — so following the instruction loops.

That message exists nowhere in current source; the binary was seven months old and ran a code path since removed, so the repair is a rebuild. The audit that went with it found the same CLASS of defect still live in two places, and both are fixed here:

  • A dry run returned success with the message version file generated, having written nothing. It now reports dry run — no version file written.
  • A real run reported success on the strength of the write not throwing. It now reads the file back and fails if the stamp on disk does not carry the version just generated — so "generated" means the file says so, not that a write was attempted. This covers the quieter half a thrown exception does not: output landing somewhere other than where the caller will look, or being undone by the in-place formatter that runs after it.

1.10.0 #

Added — :compiler and :runner name a missing cached package #

A locked package the pub cache cannot supply is not a resolution error: the lock is satisfiable, so dart pub get reports success. The failure lands later and wearing someone else's face — from the AOT compiler as Bad state: Generating AOT kernel dill failed!, which names nothing at all, and from build_runner as Undefined name at every use site, which reads as an upstream rename.

Both executors now call pubCachePreflight (tom_build_base 2.14.0) and stop with a report naming the package, its expected location and the repair.

Placement is deliberate in both:

  • :compiler checks after its early returns, so a listing, a config dump, a configured skip-compile-with-buildkit or a project with no compile sections pays nothing. A dry run compiles nothing and is skipped too.
  • :runner checks after its dry-run return, which shells out to nothing.

Requires tom_build_base >= 2.14.0.

1.9.0 #

Changed — twelve private copies of the option lookup replaced by one #

Eight executors carried their own "per-command options for this command, else global" helper (bumpversion, compiler, publisher, runner, cleanup, versioner, dependencies, buildsorter). A sweep found four more places doing it by hand, and two of those had the MIRROR-IMAGE defect: bumppubspec and status read commandArgs ONLY, so an option written BEFORE the command was dropped. execute rolled its own per-command-then-global and did not know its command's aliases, so buildkit :x --condition=... was lost. git_executors held a ninth copy.

All now call CliArgs.optionsFor (tom_build_base 2.13.0), which also MERGES the two positions rather than choosing between them — the copies returned the per-command map whole, so an option given globally was hidden whenever any per-command option was present.

Requires tom_build_base >=2.13.0.

1.8.0 #

Fixed — :bumpversion --minor=<x> no longer does a silent PATCH bump when the selector matches nothing (sce10) #

A selector matched the traversal's project name and a path SUFFIX, and nothing else. So --minor=tom_d4rt_generator — the package's own pubspec name, and the obvious thing to type — selected nothing, the project took the default patch bump, and nothing said so.

That is the one shape a release checklist cannot catch by eye, because nothing disagrees: the pubspec says a version, --versioner stamps the same version from it, the CHANGELOG section is written beside them. The release is internally consistent and numbered wrong.

Two changes:

  • a selector may now name a project's pubspec name:, as well as its traversal name or a suffix of its path (. being the project you are standing in);
  • a selector that named NO project is printed and exits non-zero, listing the projects that were processed so the correction does not cost a second run to find the right name.

A name must match whole. tom_d4rt and tom_d4rt_generator are different packages, and a prefix rule would bump the wrong one.

Features #

  • Guided-mode is now testable — GuidedMode renders its menus, confirmations and text prompts through an injectable PromptDriver instead of calling dcli directly. DcliPromptDriver performs real terminal I/O by default; ScriptedPromptDriver replays a fixed list of answers so guided-flow logic can be unit-tested without a live TTY (BK-GUIDE-*). Existing callers are unaffected (GuidedMode() still defaults to the real terminal driver).

  • ProjectGroupPicker / pickProjectScopes are now testable — the project scope picker used by git guided flows renders through the same injectable PromptDriver instead of calling dcli directly, so its scope-choice, multi-select and cancellation logic is covered by unit tests (BK-PGP-*). ProjectGroupPicker({PromptDriver? driver}) and pickProjectScopes({..., PromptDriver? driver}) default to the real terminal driver; existing callers are unaffected.

  • :execute command — Run shell commands in each traversed folder with placeholder substitution.

    • Aliases: exec, x
    • Path placeholders: ${root}, ${folder}, ${folder.name}, ${folder.relative}
    • Nature existence checks: ${dart.exists}, ${flutter.exists}, ${git.exists}
    • Nature attributes: ${dart.name}, ${dart.version}, ${git.branch}, ${git.dirty}
    • Ternary expressions: ${condition?(true-value):(false-value)}
    • Condition filtering: --condition dart.exists
  • --executable / -e option for :compiler — Filter compilation to specific executable files.

    • Comma-separated file list: --executable buildkit.dart,compiler.dart
    • Matches by basename or path suffix
    • Works in both buildkit :compiler command and standalone compiler tool
  • --project ID and name matching — The --project option now matches against project IDs and names from buildkit.yaml and tom_project.yaml, not just folder names and globs.

    • Matches short-id/project_id from tom_project.yaml
    • Matches id and name from buildkit.yaml
    • Case-insensitive matching
  • Command prefix matching — Command names can be abbreviated to their shortest unambiguous prefix.

    • :vers matches :versioner, :comp matches :compiler
    • Exact matches always take priority over prefix matches
    • Ambiguous prefixes report all matching commands
  • Macro placeholders — Macros now support argument placeholders $1–$9 and $$ (all arguments).

Bug Fixes #

  • --project filter applied before nature detection — Fixed regression where --project with ID/name values always returned empty results because folder natures were not yet detected at filter time.

Dependencies #

  • Requires tom_build_base v1.11.0 or later.

1.7.0 #

Refactoring #

  • WorkspaceScanner integration — Refactored all 17 git tools to use unified WorkspaceScanner API.
    • Replaced duplicated _findGitRepositories() methods with WorkspaceScanner().findGitRepoPaths().
    • Removed ~30 lines of duplicated code from each tool.
    • bumppubspec now uses WorkspaceScanner().findPublishable() for package discovery.

Dependencies #

  • Requires tom_build_base v1.11.0 or later for WorkspaceScanner API.

1.6.0 #

Features #

  • :status command — New internal command showing buildkit version, binary status, and git state.
    • Source version display (version, build number, git commit, build time, Dart SDK)
    • Binary currency check for all 25 buildkit tools (runs <tool> --version)
    • Categorizes tools as current, outdated, unavailable, or non-conformant
    • Git status with pending changes and unpushed commits
    • Supports --json for structured output
    • Supports --verbose to show individual file/commit details
    • Supports --skip-binaries and --skip-git flags
    • Uses standard navigation options for git repo traversal

1.5.0 #

Bug Fixes #

  • pubgetall / pubupdateall showing 0 projects — These commands now correctly run once at workspace level with their own project discovery instead of being invoked per-project.
  • Progress line not clearing — Fixed progress display in pubget and pubupdate commands by padding output to 120 chars and flushing stdout immediately.
  • Build order path normalization — Fixed computeBuildOrder() filtering out all projects due to non-normalized paths.

Features #

  • ownDiscoveryCommands — New pattern in buildkit.dart for commands that do their own project discovery (e.g., pubgetall, pubupdateall).
  • --no-recursive support — Respects the new negatable --recursive flag from tom_build_base v1.6.0.

1.4.0 #

Features #

  • --modules / -m navigation option — Filter projects/repositories to specific git modules. Comma-separated list of module names (e.g., --modules tom_module_d4rt,tom_module_basics). Use "root" or "tom" for main repository.
  • All 17 git tools now support modules filtering (gitstatus, gitcommit, gitpull, gitsync, gitbranch, gittag, gitcheckout, gitreset, gitclean, gitprune, gitstash, gitunstash, git, gitcompare, gitmerge, gitsquash, gitrebase).
  • ToolBase.findProjects() now accepts modules parameter for include filtering.
  • buildkit CLI supports --modules / -m option.

1.0.0 #

  • Initial version.
0
likes
150
points
2.7k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Build orchestration tool with pipelines that integrates Tom build tools.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analyzer, args, console_markdown, crypto, glob, markdown, meta, path, tom_build_base, tom_dcli, yaml, yaml_edit

More

Packages that depend on tom_build_kit