From 8eb2f1d686574fdc2c4f8f0bb1f0caf3ee05e72b Mon Sep 17 00:00:00 2001 From: Akshar Patel Date: Thu, 22 Oct 2026 16:06:28 -0400 Subject: [PATCH] fix(cli): report failed tag installations to scripts and agents --- docs/packages/cli.mdx | 4 ++ packages/cli/src/commands/add.test.ts | 77 +++++++++++++++++++++++++++ packages/cli/src/commands/add.ts | 19 +++++-- 3 files changed, 95 insertions(+), 5 deletions(-) diff --git a/docs/packages/cli.mdx b/docs/packages/cli.mdx index 8546c740f66..e4be6efe574 100644 --- a/docs/packages/cli.mdx +++ b/docs/packages/cli.mdx @@ -150,6 +150,10 @@ The positional name is a registry item, or a tag — a tag installs every block carrying it. `--dir` picks the project directory, `--json` prints the written files and paste snippet, and `--no-clipboard` skips the clipboard copy for CI. +If any block in a tag fails to install, `add` keeps the successful installs and +exits with code 1. With `--json`, `ok` is `false` and `errors` lists each failed +block's `name` and `error`; `installed` lists the blocks that succeeded. + Every install produces files plus a **paste snippet**: the `