You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(square): correct canonical file param usage and revert query split
- Read the catalog image file from the canonical `params.file` (the basic/advanced
inputs are collapsed before the params function runs) instead of the raw
uploadFile/fileRef ids, which no longer exist at that point — fixes the
Canonical Param Validation test and a latent upload bug
- Revert the per-operation query split: canonicalParamId is only valid for
basic/advanced pairs under one condition. Use a single query field with a
schema-neutral placeholder and a wand prompt that covers each search operation
'Generate a Square SearchOrders query JSON object with a filter (e.g. state_filter, date_time_filter) and optional sort. Return ONLY the JSON object.',
344
-
generationType: 'json-object',
320
+
placeholder: 'Square search query JSON for the selected operation',
'Generate a Square SearchCatalogObjects query JSON object (e.g. text_query, prefix_query, exact_query). Return ONLY the JSON object.',
329
+
'Generate a Square search query JSON object for the selected operation. For Search Customers use a filter like {"filter":{"email_address":{"exact":"a@b.com"}}}; for Search Orders use {"filter":{"state_filter":{"states":["OPEN"]}}}; for Search Catalog Objects use {"text_query":{"keywords":["coffee"]}}. Return ONLY the JSON object.',
0 commit comments