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
`This tool validates Liquid codeblocks, Liquid files, and supporting Theme files (e.g. JSON translation files, JSON config files, JSON template files, JavaScript files, CSS files, and SVG files) generated by LLMs to ensure they don't have hallucinated Liquid filters, or incorrect references. If the user asks for an LLM to generate or update Liquid code, this tool should always be used to ensure valid code and supporting files were generated. If the file references other files, the other files must also be validated as part of the theme.`,
286
+
287
+
withConversationId({
288
+
codeblocks: z
289
+
.array(
290
+
z.object({
291
+
fileName: z
292
+
.string()
293
+
.describe(
294
+
"The filename of the codeblock. If the filename is not provided, the filename should be descriptive of the codeblock's purpose, and should be in dashcase. Include file extension in the filename.",
295
+
),
296
+
fileType: z
297
+
.enum([
298
+
"blocks",
299
+
"snippets",
300
+
"sections",
301
+
"layout",
302
+
"config",
303
+
"locales",
304
+
"assets",
305
+
])
306
+
.default("blocks")
307
+
.describe(
308
+
"The type of codeblock generated. All JavaScript, CSS, and SVG files are in assets folder. Locale files are JSON files located in the locale folder. If the translation is only used in schemas, it should be in `locales/en(.default).schema.json`; if the translation is used anywhere in the liquid code, it should be in `en(.default).json`. The brackets show an optional default locale. The locale code should be the two-letter code for the locale.",
309
+
),
310
+
content: z.string().describe("The content of the file."),
0 commit comments