fix(cli): avoid catalog validation in agents add (#88314)

Fixes #76284.

Thanks @zhangguiping-xydt.

Co-authored-by: 张贵萍0668001030 <zhang.guiping@xydigit.com>
This commit is contained in:
zhang-guiping
2026-06-01 02:22:16 +08:00
committed by GitHub
parent a88e4fb7e0
commit 2fbddce881
4 changed files with 66 additions and 2 deletions

View File

@@ -257,7 +257,8 @@ jobs:
return -1;
}
for (let start = input.indexOf("["); start !== -1; start = input.indexOf("[", start + 1)) {
for (const match of input.matchAll(/\[/g)) {
const start = match.index;
const end = arrayEndFrom(start);
if (end === -1) {
continue;