@wix/evalforge-evaluator 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +7 -3
- package/build/index.js.map +3 -3
- package/build/index.mjs +7 -3
- package/build/index.mjs.map +3 -3
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -37418,7 +37418,8 @@ IMPORTANT: This is an automated evaluation run. Follow these guidelines:
|
|
|
37418
37418
|
3. Do NOT use the Task tool to delegate simple operations - do them directly yourself.
|
|
37419
37419
|
4. Keep your approach simple and direct - avoid excessive planning.
|
|
37420
37420
|
5. Make targeted edits using Read and Edit tools rather than exploring the entire codebase.
|
|
37421
|
-
6. If you encounter an error, fix it directly rather than starting over
|
|
37421
|
+
6. If you encounter an error, fix it directly rather than starting over.
|
|
37422
|
+
7. The PROJECT ROOT (template root) is: ${options.cwd}. Create ALL files in the project root. Use paths relative to the project root for file operations.`;
|
|
37422
37423
|
const fullPrompt = scenario.triggerPrompt + evaluatorPromptSuffix;
|
|
37423
37424
|
for await (const message of query({
|
|
37424
37425
|
prompt: fullPrompt,
|
|
@@ -37721,9 +37722,12 @@ Stack: ${errorStack.split("\n").slice(0, 5).join("\n")}` : "")
|
|
|
37721
37722
|
llmTrace
|
|
37722
37723
|
};
|
|
37723
37724
|
}
|
|
37725
|
+
function sanitizeSkillFolderName(name18) {
|
|
37726
|
+
return name18.trim().replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-_]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "") || "skill";
|
|
37727
|
+
}
|
|
37724
37728
|
async function writeSkillToFilesystem(cwd, skill) {
|
|
37725
|
-
const
|
|
37726
|
-
const skillDir = (0, import_path5.join)(cwd, ".claude", "skills",
|
|
37729
|
+
const skillFolderName = sanitizeSkillFolderName(skill.name);
|
|
37730
|
+
const skillDir = (0, import_path5.join)(cwd, ".claude", "skills", skillFolderName);
|
|
37727
37731
|
await (0, import_promises3.mkdir)(skillDir, { recursive: true });
|
|
37728
37732
|
const skillPath = (0, import_path5.join)(skillDir, "SKILL.md");
|
|
37729
37733
|
await (0, import_promises3.writeFile)(skillPath, skill.skillMd, "utf-8");
|