From 65276022724bb5097473a5c0a8358295e5052da1 Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Fri, 7 Aug 2026 17:55:03 +0000 Subject: [PATCH] fix(cli): search param uses search[] tuple format The records API requires search[]=value (tuple), not search=value (string). Without this, the CLI returned 400 'expected tuple, received string'. Same fix already exists in the workflow getRecords action. --- src/lib/client.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/client.ts b/src/lib/client.ts index 3991d86..bb3ec2b 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -106,6 +106,10 @@ export class Client { }); } else if (typeof v === 'object') { out[k] = JSON.stringify(v); + } else if (k === 'search' && typeof v === 'string') { + // The records list API expects `search[]=value` (tuple), not a plain + // `search=value` string. https://github.com/colinhacks/zod + out['search[]'] = v; } else { out[k] = String(v); }