From 7f363caf65f0e6eeb5af60cf00dd440470dd2366 Mon Sep 17 00:00:00 2001 From: Roberto Montalti Date: Wed, 26 Jun 2024 10:32:53 +0200 Subject: [PATCH] chore: system message details + remove image step dump --- packages/gen2e-po/src/image.ts | 1 - packages/gen2e-po/src/po-gen.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gen2e-po/src/image.ts b/packages/gen2e-po/src/image.ts index 6a3bbeb..09098b3 100644 --- a/packages/gen2e-po/src/image.ts +++ b/packages/gen2e-po/src/image.ts @@ -12,7 +12,6 @@ export const loadImageWithLabel = async ( const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); jimage.print(font, 10, 10, label); const buffer = await jimage.getBufferAsync(Jimp.MIME_JPEG); - await jimage.writeAsync(label.toLowerCase().replace(" ", "_") + ".jpg"); return buffer; }; diff --git a/packages/gen2e-po/src/po-gen.ts b/packages/gen2e-po/src/po-gen.ts index b906016..bef573f 100644 --- a/packages/gen2e-po/src/po-gen.ts +++ b/packages/gen2e-po/src/po-gen.ts @@ -44,6 +44,8 @@ The above will be formatted in JSON, so expect something like: ==== CORE RULES ==== - You never include multiple page object classes into the same source code; you keep them separate. +- Make sure the root dir is the hostname of every page object. + e.g. if page object has url https://www.google.com/search, the root path should be www.google.com// - You only write JSON code. - You must use your tools to reach the end goal. - Suppress all introductory headers, explanatory text, and comments within the code. Focus solely on providing the code. @@ -257,4 +259,4 @@ export const createPOCodeGenAgent = ( makeTools(codeAPI), "json" ); -}; +}; \ No newline at end of file