diff --git a/packages/core/src/promptdom.ts b/packages/core/src/promptdom.ts index a7ad973816..55d77a4f4f 100644 --- a/packages/core/src/promptdom.ts +++ b/packages/core/src/promptdom.ts @@ -1065,7 +1065,7 @@ ${trimNewlines(schemaText)} const fods = fileOutputs?.filter((f) => !!f.description) if (fods?.length > 0) { - userPrompt += ` + systemPrompt += ` ## File generation rules When generating files, use the following rules which are formatted as "file glob: description": diff --git a/packages/sample/src/edits/editsgen.genai.mjs b/packages/sample/src/edits/editsgen.genai.mjs index cfd7f872e5..29086266a9 100644 --- a/packages/sample/src/edits/editsgen.genai.mjs +++ b/packages/sample/src/edits/editsgen.genai.mjs @@ -1,5 +1,5 @@ script({ - files: "src/edits/fib.ts", + files: "src/edits/fibs/fib.ts", }) $`Generation 1 variations of the SNIPPET in various programming languages and save them in files. @@ -7,4 +7,4 @@ $`Generation 1 variations of the SNIPPET in various programming languages and sa - there should be a function with a TODO comment and a BODY comment ` def("FILE", env.files) -defFileOutput("src/edits/**") +defFileOutput("src/edits/**/*", "generated files")