From 3596a7f22bcceeb562c010ad7bab37e4e84fc7c3 Mon Sep 17 00:00:00 2001 From: Akshar Patel <123344143+AksharP5@users.noreply.github.com> Date: Sat, 24 Oct 2026 07:18:42 +0000 Subject: [PATCH] fix(cli): report failed tag installations to scripts and agents (#6086) * fix(cli): report failed tag installations to scripts and agents * fix(cli): restore status markers in tag install summaries --- docs/packages/cli.mdx | 4 ++ packages/cli/src/commands/add.test.ts | 83 +++++++++++++++++++++++++++ packages/cli/src/commands/add.ts | 19 ++++-- 3 files changed, 101 insertions(+), 5 deletions(-) diff --git a/docs/packages/cli.mdx b/docs/packages/cli.mdx index 65260443c7..d263fba0c8 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 `